Bruce Zhao
2012-10-08
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user+unsubscribe@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
See also the IRC channel -- freenode.net#mongodb
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
A few comments:
1. You might try a few more threads to see if you keep getting more insert performance.
2. That said, if your just counting inserts/second vs same with a single table in an RDBMS I would not expect an advantage for mongo. Performance-wise I'd expect the advantage for mongo in two places:
I) If the data requires child tables in the rdbms, for example orders with order headers and lines in an rdbms that can be stored as one object in mongo. This is quite common.
II) Built in sharding which makes it easy to scale out. Need to do a few hundred thousand writes per second? No problem.
You might start a thread about tuning the insert with index and safe mode; I'm sure folks smarter than me about that would be happy to look at monvostat, iostat, settings etc and give some advice.
-- Max
Sounds like the right approach, add threads til you see a peak in throughput, glad you found the peak.
Feel free to post some additional details if you want some tuning help. New thread is probably best.
-- Max
I did test more threads, but it did not getting more insert performance, sometimes it get more worse.
I have tried with your driver, the most fast speed i saw is ~11k writes, with 200 threads.The strange thing is the performance is achieved when max connecttion count is set to 1(mongo.getConfig().setMaxConnectionCount(1))if i change the max connection count to 1000, the performance is about ~6k, slower than max connection count 1.