Skip to content

Commit 4736ee6

Browse files
authored
PERF-3569 Add more realistic scan test cases (#117)
1 parent 97e50f9 commit 4736ee6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

testcases/simple_query.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ if (typeof(tests) !== "object") {
2424
op: {op: "find", query: {}}
2525
});
2626

27+
/**
28+
* Setup: Create a large collection of large documents.
29+
*
30+
* Test: Empty query that returns all documents.
31+
*/
32+
for (const numDocs of [[10000, '10K'], [100000, '100K']]) {
33+
addQueryTestCase({
34+
name: "Large" + numDocs[1],
35+
tags: ["regression"],
36+
nDocs: numDocs[0],
37+
docs: largeDoc,
38+
op: {op: "find", query: {}}
39+
});
40+
}
41+
2742
/**
2843
* Setup: Create a collection of documents with only an ObjectID _id field.
2944
*

0 commit comments

Comments
 (0)