for (var i = 1; i <= 100000; i++) {
db.testdata2.insert( { x : i , name: "MACLEAN" , name1:"MACLEAN", name2:"MACLEAN", name3:"MACLEAN"} )
}
use testdata2
for(var i=1;i<=10000;i++){db.data.insert({
x:i,name:"MACLEAN",name1:"MACLEAN",name2:"MACLEAN",name3:"MACLEAN"
})}
db.data.find({x:{$gt:40}}).explain();