Files
mongo/jstests/core/cursor1.js
Jack Mulrow 00d92ece19 SERVER-31194 Add jscore tags for retryable_writes_jscore_stepdown_passthrough.yml suite
The actual suite will come in a follow-up commit.
2017-12-07 14:36:15 -05:00

22 lines
403 B
JavaScript

// @tags: [requires_getmore]
t = db.cursor1;
t.drop();
big = "";
while (big.length < 50000)
big += "asdasdasdasdsdsdadsasdasdasD";
num = Math.ceil(10000000 / big.length);
for (var i = 0; i < num; i++) {
t.save({num: i, str: big});
}
assert.eq(num, t.find().count());
assert.eq(num, t.find().itcount());
assert.eq(num / 2, t.find().limit(num / 2).itcount());
t.drop(); // save some space