0
mongoの結果を以下のようにfield-by-fieldより速くデータ構造に解析する方法はありますか?私は現在これをやっているし、それは非常に遅いです。mongo結果のデータをフィールド単位で取得するより高速な方法ですか?
mongocxx::cursor cursor = m_coll.find(<some-query>);
for (bsoncxx::document::view doc : cursor)
{
RecreatedObj readback;
readback.Area = doc["Area"].get_int32();
readback.fieldOne = doc["fieldOne"].get_double();
readback.fieldTwo = doc["fieldTwo"].get_double();
readback.fieldThree = doc["fieldThree"].get_int32();
...
}