I am using Mongodb as database for project and i am sending 1000 requests per sec to mongodb. I got a observation that the request which are front in queue works faster as compare to request which are last in queue. I am afraid if call to mongodb increase it will consume more time. I think this i can manage using pool connection.If yes let me know how we increased pool size using python.If no suggest me any other alternative
Following are some results to find documents with field snippetid which i had index
Some request which are send early
db.collection.find({'snippetid': '55a0466a414353801e4ff16a'})
Time Taken 0.00563097000122
db.collection.find({'snippetid': '559417cd5217d572fa120a21'})
Time Taken 0.00330901145935
Some request which are last in queue
db.collection.find({'snippetid': '55a4b1d45217d5e7609e19b2'})
Time Taken 1.95499396324
db.collection.find({'snippetid': '55a059d5be98fa09168b63f9'})
Time Taken 1.96221590042