Skip to content Skip to sidebar Skip to footer

Efficiency When Inserting Into Mongodb (pymongo)

Updated for clarity: I need advice for performance when inserting/appending to a capped collection. I have two python scripts running: (1) Tailing the cursor. while WSHandler.cur

Solution 1:

I would suggest using mongostat while running your tests. There are many things that could be wrong but mongostat will give you a good indication.

http://docs.mongodb.org/manual/reference/mongostat/

The first two things I would look at are the lock percentage and the data throughput. With reasonable throughput on dedicated machines I typically get into the 1000-2000 updates/inserts per second before suffering any degradation. This has been the case for several large production deployments I have worked with.

Post a Comment for "Efficiency When Inserting Into Mongodb (pymongo)"