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

Fix bookcorpusopen RAM usage #3280

Merged
merged 2 commits into from
Nov 16, 2021
Merged

Fix bookcorpusopen RAM usage #3280

merged 2 commits into from
Nov 16, 2021

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Nov 16, 2021

Each document is a full book, so the default arrow writer batch size of 10,000 is too big, and it can fill up RAM quickly before flushing the first batch on disk. I changed its batch size to 256 to use maximum 100MB of memory

Fix #3167.

@lhoestq lhoestq merged commit ed1b492 into master Nov 16, 2021
@lhoestq lhoestq deleted the fix-bookcorpusopen-ram-usage branch November 16, 2021 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bookcorpusopen no longer works
1 participant