synchronizing 3. Take an existing secondary out 4. Actually unregister the secondary 5. Watch the whole cluster re-elect the same primary and kill all active connections
os.environ.get('MONGO_SAFE') == '1' con = Connection() db = con['wtfmongo'] coll = db['test'] coll.remove() for x in xrange(50000): coll.insert({'foo': 'bar'}, safe=safe)
2. {a: 1, b: 2} and {$and: [{a: 1}, {b: 2}]} are equivalent 3. Only the former picks up the compound index 4. Negations never use indexes 5. {$or: […]} is implemented as two parallel queries, both clauses might need separate indexes.