maggma icon indicating copy to clipboard operation
maggma copied to clipboard

Fix MongoStore `update` speed

Open munrojm opened this issue 3 years ago • 1 comments

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 avatar Jan 07 '22 22:01 munrojm

See also related question in #289

rkingsbury avatar Aug 24 '22 20:08 rkingsbury