jstests/core/timeseries/timeseries_index_partial.js
// Make sure the query results match a collection-scan plan.
Make sure the query results match a collection-scan plan.
Make sure the query results match a collection - scan plan .
function checkResults(predicate) {
        const result = coll.aggregate({$match: predicate}).toArray();
        const unindexed =
            coll.aggregate([{$_internalInhibitOptimization: {}}, {$match: predicate}]).toArray();
        assert.docEq(result, unindexed);
    }
function checkResults ( predicate ) { const result = coll . aggregate ( { $match : predicate } ) . toArray ( ) ; const unindexed = coll . aggregate ( [ { $_internalInhibitOptimization : { } } , { $match : predicate } ] ) . toArray ( ) ; assert . docEq ( result , unindexed ) ; }
Make sure the query results match a collection-scan plan.
Make sure the query results match a collection - scan plan .