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

Add batchSize method to DataFrame #718

Closed
norberttech opened this issue Nov 3, 2023 · 1 comment
Closed

Add batchSize method to DataFrame #718

norberttech opened this issue Nov 3, 2023 · 1 comment
Assignees
Milestone

Comments

@norberttech
Copy link
Member

Currently we can manipulate batch size of dataframe in 2 ways:

  • DataFrame::parallelize
  • DataFrame::collect

First one will split Rows into smaller batches, second one will merge small Rows into bigger batch.
Even that those two are working fine, it might not be always easy to determine which one to use, plus
their names might be confusing to users without understanding how DataFrame works.

We can solve both of those problems by adding:

DataFrame::batchSize(int $size) : self

That will split or merge processed rows based on the size.
It should also be more intuitive to the users.

@norberttech
Copy link
Member Author

#720

@norberttech norberttech added this to the 0.5.0 milestone Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant