Question

Where is the problem with writing speed on MongoDB on Droplet. ( only 12 document per second )

I use 2 approaches to connect to MongoDB server on Droplet from my computer. ( via SSH tunneling and vie URL). I check and see CPU ( of the Droplet ) utilizes only 6%, Top Disk IO is 0.3M/s. I achieved very low writing speed to Droplet, 12000 documents in 936 second, around 12 documents per second. My document is very short: just one term ( 1 word or 2 words ) and one explanation ( usually 1 short sentence). Where should be the problem ?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

I could suggest starting with some MongoDB optimizations.

What you could do is follow the steps from the official MongoDB documentation on how to optimize the write operation performance:

https://docs.mongodb.com/manual/core/write-performance/

Regards, Bobby