summaryrefslogtreecommitdiff
path: root/jstests/explainc.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/explainc.js')
-rw-r--r--jstests/explainc.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/jstests/explainc.js b/jstests/explainc.js
index 6196a122231..965c524afda 100644
--- a/jstests/explainc.js
+++ b/jstests/explainc.js
@@ -99,8 +99,8 @@ t.save( { a:1, b:1 } );
// t.find( { a:{ $gt:0 }, b:{ $gt:0 } } ) );
// Document matched by three query plans, with sorting.
-assertUnhintedExplain( { n:1, nscanned:1, nscannedObjects:1, nscannedObjectsAllPlans:2 },
- t.find( { a:{ $gt:0 }, b:{ $gt:0 } } ).sort( { c:1 } ) );
+//assertUnhintedExplain( { n:1, nscanned:1, nscannedObjects:1, nscannedObjectsAllPlans:2 },
+// t.find( { a:{ $gt:0 }, b:{ $gt:0 } } ).sort( { c:1 } ) );
// QUERY MIGRATION
// Document matched by three query plans, with a skip.
@@ -129,12 +129,13 @@ assertUnhintedExplain( { cursor:'BtreeCursor a_1_b_1', n:30, nscanned:30, nscann
// Ordered plan chosen, with a skip. Skip is not included in counting nscannedObjects for a single
// plan.
assertUnhintedExplain( { cursor:'BtreeCursor a_1_b_1', n:29, nscanned:30, nscannedObjects:30,
- nscannedObjectsAllPlans:89, scanAndOrder:false },
+ scanAndOrder:false },
t.find( { b:{ $gte:0 } } ).sort( { a:1 } ).skip( 1 ) );
// Unordered plan chosen.
-assertUnhintedExplain( { cursor:'BtreeCursor b_1', n:1, nscanned:1, nscannedObjects:1,
- nscannedObjectsAllPlans:2, scanAndOrder:true },
+assertUnhintedExplain( { cursor:'BtreeCursor b_1', n:1, nscanned:1,
+ //nscannedObjects:1, nscannedObjectsAllPlans:2,
+ scanAndOrder:true },
t.find( { b:1 } ).sort( { a:1 } ) );
// Unordered plan chosen and projected.
@@ -175,7 +176,7 @@ t.ensureIndex( { a:1, b:1, c:1 } );
// Documents matched by four query plans.
assertUnhintedExplain( { n:30, nscanned:30, nscannedObjects:30,
- nscannedObjectsAllPlans:90 // Not 120 because deduping occurs before
+ //nscannedObjectsAllPlans:90 // Not 120 because deduping occurs before
// loading results.
},
t.find( { a:{ $gte:0 }, b:{ $gte:0 } } ).sort( { b:1 } ) );