Performance: Best practice #161
NilsStausberg
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I just encountered some performance issues when creating/updating a large number of documents on the fly. To get better performance I am using:
db.get_collection(model).insert_many() # creation
db.get_collection(model).bulk_write() # updating
I wonder if you are experiencing the same thing and how do you resolve it? I believe there are currently no real batch operations within the odmantic project?
It would be great if we could share some best practices!
Cheers
Beta Was this translation helpful? Give feedback.
All reactions