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

refactor: remove the queue in LanceArrowWriter to reduce memory usage for spark sink #3110

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

SaintBacchus
Copy link
Contributor

Remove the queue in LanceArrowWriter since it may cache all rows in queue and that will require a lot of jvm memory.

Use mutex to control the write rate of sinker. Writer will wait util the reader take the batch.

And more I had moved the maven-shade-plugin into a new profile which is diabled by default because jar-with-dependencie was conflict with many jars in spark dependencie

@github-actions github-actions bot added the java label Nov 9, 2024
Copy link
Collaborator

@LuQQiu LuQQiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@LuQQiu LuQQiu merged commit f60283e into lancedb:main Nov 13, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants