summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-08-11 14:34:45 -0400
committerDwight <dmerriman@gmail.com>2009-08-11 14:34:45 -0400
commit0545f5ff48052815825798cedf778d05ebbe8534 (patch)
treeb8e1878ba4ab4fe0e4c32880391a16bfb750d93a
parent0d1165765a99362ac53d822e5329360ef4336d50 (diff)
downloadmongo-0545f5ff48052815825798cedf778d05ebbe8534.tar.gz
better comment
-rw-r--r--db/query.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/query.h b/db/query.h
index 62f4f5925bb..29f13783369 100644
--- a/db/query.h
+++ b/db/query.h
@@ -48,7 +48,9 @@
dbQuery:
string collection;
int nToSkip;
- int nToReturn; // how many you want back as the beginning of the cursor data (0=no limit)
+ int nToReturn; // how many you want back as the beginning of the cursor data (0=no limit)
+ // greater than zero is simply a hint on how many objects to send back per "cursor batch".
+ // a negative number indicates a hard limit.
JSObject query;
[JSObject fieldsToReturn]
dbGetMore: