Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove notes on deprecated Batch size #6102

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions docs/user_guide/data_types_and_io/pickle_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,4 @@ We have used a simple object here for demonstration purposes.
:lines: 7-26
```

## Batch size

By default, if the list subtype is unrecognized, a single pickle file is generated.
To optimize serialization and deserialization performance for scenarios involving a large number of items
or significant list elements, you can specify a batch size.
This feature allows for the processing of each batch as a separate pickle file.
The following example demonstrates how to set the batch size.

```{literalinclude} /examples/data_types_and_io/data_types_and_io/pickle_type.py
:caption: data_types_and_io/pickle_type.py
:lines: 35-58
```

:::{note}
The `welcome_superheroes` task will generate two pickle files: one containing two superheroes and the other containing one superhero.
:::

You can run the workflows locally as follows:

```{literalinclude} /examples/data_types_and_io/data_types_and_io/pickle_type.py
:caption: data_types_and_io/pickle_type.py
:lines: 62-64
```

[flytesnacks]: https://github.com/flyteorg/flytesnacks/tree/master/examples/data_types_and_io/
Loading