Constants: MONGODBDAM-Query Flags

Parent: $root.$constants

kMongoQueryFlagAwaitDataUse with kMongoQueryFlagTailableCursor. Block rather than returning no data. After a period, time out.
kMongoQueryFlagExhaustStream the data down full blast in multiple "reply" packets. Faster when pulling down a lot of data and you know you want to retrieve it all.
kMongoQueryFlagNoneNo query flags specified
kMongoQueryFlagNoTimeoutThe server normally times out an idle cursor after an inactivity period (10 minutes). This prevents that.
kMongoQueryFlagPartialGet partial results from mongos if some shards are down(instead of throwing an error).
kMongoQueryFlagSecondaryOkAllow query of replica set secondaries.
kMongoQueryFlagTailableCursorCursor will not be closed when the last data is retrieved. You can resume this cursor later.