blob: 1ca27f9a8ef600cc5e587d64e2ff433f42af8f96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/**
* 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.createIndex({a: 1});
let inClause = [];
for (let i = 0; i < 1000000; i++) {
inClause.push(i);
}
assert.commandWorked(coll.find({a: {$in: inClause}}).explain());
}());
|