We are using Mongodb from python with pymongo. Our database has about 50 millions records, so we need to optimize our queries to get fast response.
We can't find out how to make a query that will not return fields starting by "_".
"HTTrack" : {
"Date" : "Mon, 25 Jun 2012 22:31:37 GMT",
"Archive" : "/home/frontware/websites/mypage.html",
"_EE" : 2
},
"Imported" : {
"On" : ISODate("2012-06-26T07:55:40.820Z")
},
"Related to" : [
{
"Created on" : ISODate("2012-06-26T09:11:06.614Z"),
"_id" : NumberLong("-615146955922640935"),
"Created by" : "Phone Consolidation"
},
{
"Created on" : ISODate("2012-06-26T13:39:48.906Z"),
"_id" : NumberLong("-8580834954651581190"),
"Created by" : "Name Consolidation"
},
{
"Created on" : ISODate("2012-06-26T13:39:48.969Z"),
"_id" : NumberLong("-5378604234799856756"),
"Created by" : "Name Consolidation"
}
],
"_Source" : "test",
"Tel" : [
{
"Type" : "Fax",
"Number" : "+3355555555"
}
],
"_id" : NumberLong("-1365906524383645057")
}
You can see we have several fields name starting by "_".
We would like to execute a find that will return all fields of a record without all fields starting by "_"
Thanks for your suggestions.