I'm getting weird behaviour from mongodb.
I have a sharded session collection called tracking were i do findOne's only on the _id (=shard key) and at the end of the script do an update.
Before getting the session data I get the site data (non sharded collection) also with findOne (also on the _id), I cache the site data in memcached, this way the tracking findOne takes about 0.04 seconds to fetch.
However when I disable memcached on the site data and force it to get the data from mongodb the tracking findOne takes 0.001 seconds and the site findOne now is slow.
Explain situation 2 with findOne site first: http://pastebin.com/qTX0az7H
Explain situation 1 with findOne tracking first: http://pastebin.com/bBSXUEKh
I'm using the PHP driver 1.4.4 and mongodb version v2.4.6