blob: daa3bea0ffd63c8203207bf9ec3aecc6a9920c25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/**
* Make sure explain succeeds even when the index bounds are really big.
* @tags: [resource_intensive]
*/
(function() {
const coll = db.jstests_explain_large_bounds;
coll.drop();
coll.ensureIndex({a: 1});
let inClause = [];
for (let i = 0; i < 1000000; i++) {
inClause.push(i);
}
assert.commandWorked(coll.find({a: {$in: inClause}}).explain());
}());
|