-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: legacy-1.0.1
-
Component/s: BSON
-
Environment:Open SUSE 13.1 64bit
-
None
-
None
-
None
-
None
-
None
-
None
-
None
I try to implement c++ code that get about 800.000 document in a collection has 30 field (types include int, double, string), It take more than 240 seconds.
To count duration time, I seperate code into 2 sections. The first invokes DBClientConnection::query to get all from collection and return vector of BSONObjs, it take 20 seconds. The last iterate that vector and parses each of BSONObj to a C++ object, using BSONObj::getField().Int() (or Double(), or String()). And, more than 200 seconds!
Please consider and give me some advices to improve it.
Thanks you.