Report this

What is the reason for this report?

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

Posted on May 17, 2017

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 ?



This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.