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 MongoStore update speed #530

Open
munrojm opened this issue Jan 7, 2022 · 1 comment
Open

Fix MongoStore update speed #530

munrojm opened this issue Jan 7, 2022 · 1 comment
Assignees

Comments

@munrojm
Copy link
Member

munrojm commented Jan 7, 2022

Example:
Using my_store._collection.insert_many() -> 4.34 seconds
Using my_store.update() -> 279.79 seconds.

update is doing a bulk_write of ReplaceOne requests (perhaps pointing to a missing index on the collection I’m inserting to?), but it does probably point to needing an alternative method when we know that we’re inserting to an empty collection.

@munrojm munrojm self-assigned this Jan 7, 2022
@rkingsbury
Copy link
Collaborator

See also related question in #289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants