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 batch insert #9

Merged
merged 5 commits into from
Apr 25, 2023
Merged

Add batch insert #9

merged 5 commits into from
Apr 25, 2023

Conversation

piercefreeman
Copy link
Owner

@piercefreeman piercefreeman commented Apr 25, 2023

Implement #7: batch object insert.

For particular backends we can make some optimizations to the batch case, versus ad-hoc inserts. Where supported we also allow users to display a progress bar to show the current status of upserts. This status update is particularly useful on remote backends like Pinecone that might have higher latency to send content over the wire.

We can likely generalize the single insertion logic to be a batch insert of size 1 in the future. For this PR we keep the implementations separate.

session.insert_batch([obj1, obj2, obj3, ...])

@piercefreeman piercefreeman force-pushed the feature/add-batch-insertion branch 4 times, most recently from 768c07f to 737a5c8 Compare April 25, 2023 04:05
@piercefreeman piercefreeman force-pushed the feature/add-batch-insertion branch from 737a5c8 to c7e394b Compare April 25, 2023 04:06
@piercefreeman piercefreeman merged commit a9d32f1 into main Apr 25, 2023
@piercefreeman piercefreeman deleted the feature/add-batch-insertion branch April 25, 2023 04:07
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.

1 participant