You said you are getting a load time 87Sec for one million records 1KB size. Are you using synchronous calls or asynchronous calls....??????
Please correct me Rob and guide me in right path.
Thanks & Regards
Amar
--
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...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
Hi Stephen and Robert,I just copy your code in a different classes and I ran the code for inserting one million records.Stephen's code took almost 24150ms almost 24 Sec. I ran the program 3 to 4 times, every time I got a results in between 24 Sec to 29 Sec.Robert's code (Asynchronous Java Driver) took almost 33.488101091s. I ran 3 to 4 times at the first time it took 63 Sec and after that again I ran the same code at that time it reduces half of the time. It took 32Sec second time after that it took 32Sec to 36Sec.Robert why it's taking a long time at the very first time..??
I am using the 8GB Ram, core i7, 2.20GHz processor.Initially I used 8GB Ram, core i7, 1.60GHz processor so that's is the one reason it took 127Sec for one million.
- What is the best way to solve my problem. I mean which one I need to use (Asynchronous Java Driver or Normal Mongo Java Driver) ..??
--