Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.getCollection('product').find({
- "_type": "healthcare2",
- "own_risk": 375,
- "active": true,
- "enabled": true,
- "age_to": {
- "$gt": 36
- },
- "age_from": {
- "$lte": 36
- },
- "_collectivity": null
- }).explain(true);
- /* 1 */
- {
- "queryPlanner" : {
- "plannerVersion" : 1,
- "namespace" : "komparu_product_acc.product",
- "indexFilterSet" : false,
- "parsedQuery" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "winningPlan" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "_collectivity" : 1.0000000000000000
- },
- "indexName" : "_collectivity_1",
- "isMultiKey" : true,
- "direction" : "forward",
- "indexBounds" : {
- "_collectivity" : [
- "[null, null]"
- ]
- }
- }
- },
- "rejectedPlans" : [
- {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "age_to" : 1.0000000000000000
- },
- "indexName" : "age_to_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "age_to" : [
- "(36.0, inf.0]"
- ]
- }
- }
- },
- {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "own_risk" : 1.0000000000000000
- },
- "indexName" : "own_risk_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "own_risk" : [
- "[375.0, 375.0]"
- ]
- }
- }
- },
- {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "enabled" : 1.0000000000000000
- },
- "indexName" : "enabled_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "enabled" : [
- "[true, true]"
- ]
- }
- }
- },
- {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "active" : 1.0000000000000000
- },
- "indexName" : "active_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "active" : [
- "[true, true]"
- ]
- }
- }
- },
- {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "_type" : 1.0000000000000000
- },
- "indexName" : "_type_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "_type" : [
- "[\"healthcare2\", \"healthcare2\"]"
- ]
- }
- }
- },
- {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "age_from" : 1.0000000000000000
- },
- "indexName" : "age_from_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "age_from" : [
- "[-inf.0, 36.0]"
- ]
- }
- }
- }
- ]
- },
- "executionStats" : {
- "executionSuccess" : true,
- "nReturned" : 324,
- "executionTimeMillis" : 327,
- "totalKeysExamined" : 4400,
- "totalDocsExamined" : 4400,
- "executionStages" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "nReturned" : 324,
- "executionTimeMillisEstimate" : 140,
- "works" : 4401,
- "advanced" : 324,
- "needTime" : 4076,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 1,
- "invalidates" : 0,
- "docsExamined" : 4400,
- "alreadyHasObj" : 0,
- "inputStage" : {
- "stage" : "IXSCAN",
- "nReturned" : 4400,
- "executionTimeMillisEstimate" : 0,
- "works" : 4401,
- "advanced" : 4400,
- "needTime" : 0,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 1,
- "invalidates" : 0,
- "keyPattern" : {
- "_collectivity" : 1.0000000000000000
- },
- "indexName" : "_collectivity_1",
- "isMultiKey" : true,
- "direction" : "forward",
- "indexBounds" : {
- "_collectivity" : [
- "[null, null]"
- ]
- },
- "keysExamined" : 4400,
- "dupsTested" : 4400,
- "dupsDropped" : 0,
- "seenInvalidated" : 0,
- "matchTested" : 0
- }
- },
- "allPlansExecution" : [
- {
- "nReturned" : 34,
- "executionTimeMillisEstimate" : 40,
- "totalKeysExamined" : 1368,
- "totalDocsExamined" : 1368,
- "executionStages" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- }
- ]
- },
- "nReturned" : 34,
- "executionTimeMillisEstimate" : 40,
- "works" : 1368,
- "advanced" : 34,
- "needTime" : 1334,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "docsExamined" : 1368,
- "alreadyHasObj" : 0,
- "inputStage" : {
- "stage" : "IXSCAN",
- "nReturned" : 1368,
- "executionTimeMillisEstimate" : 0,
- "works" : 1368,
- "advanced" : 1368,
- "needTime" : 0,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "keyPattern" : {
- "age_to" : 1.0000000000000000
- },
- "indexName" : "age_to_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "age_to" : [
- "(36.0, inf.0]"
- ]
- },
- "keysExamined" : 1368,
- "dupsTested" : 0,
- "dupsDropped" : 0,
- "seenInvalidated" : 0,
- "matchTested" : 0
- }
- }
- },
- {
- "nReturned" : 82,
- "executionTimeMillisEstimate" : 40,
- "totalKeysExamined" : 1368,
- "totalDocsExamined" : 1368,
- "executionStages" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "nReturned" : 82,
- "executionTimeMillisEstimate" : 40,
- "works" : 1368,
- "advanced" : 82,
- "needTime" : 1286,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "docsExamined" : 1368,
- "alreadyHasObj" : 0,
- "inputStage" : {
- "stage" : "IXSCAN",
- "nReturned" : 1368,
- "executionTimeMillisEstimate" : 10,
- "works" : 1368,
- "advanced" : 1368,
- "needTime" : 0,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "keyPattern" : {
- "own_risk" : 1.0000000000000000
- },
- "indexName" : "own_risk_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "own_risk" : [
- "[375.0, 375.0]"
- ]
- },
- "keysExamined" : 1368,
- "dupsTested" : 0,
- "dupsDropped" : 0,
- "seenInvalidated" : 0,
- "matchTested" : 0
- }
- }
- },
- {
- "nReturned" : 16,
- "executionTimeMillisEstimate" : 40,
- "totalKeysExamined" : 1368,
- "totalDocsExamined" : 1368,
- "executionStages" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "nReturned" : 16,
- "executionTimeMillisEstimate" : 40,
- "works" : 1368,
- "advanced" : 16,
- "needTime" : 1352,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "docsExamined" : 1368,
- "alreadyHasObj" : 0,
- "inputStage" : {
- "stage" : "IXSCAN",
- "nReturned" : 1368,
- "executionTimeMillisEstimate" : 0,
- "works" : 1368,
- "advanced" : 1368,
- "needTime" : 0,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "keyPattern" : {
- "enabled" : 1.0000000000000000
- },
- "indexName" : "enabled_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "enabled" : [
- "[true, true]"
- ]
- },
- "keysExamined" : 1368,
- "dupsTested" : 0,
- "dupsDropped" : 0,
- "seenInvalidated" : 0,
- "matchTested" : 0
- }
- }
- },
- {
- "nReturned" : 16,
- "executionTimeMillisEstimate" : 10,
- "totalKeysExamined" : 1368,
- "totalDocsExamined" : 1368,
- "executionStages" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "nReturned" : 16,
- "executionTimeMillisEstimate" : 10,
- "works" : 1368,
- "advanced" : 16,
- "needTime" : 1352,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "docsExamined" : 1368,
- "alreadyHasObj" : 0,
- "inputStage" : {
- "stage" : "IXSCAN",
- "nReturned" : 1368,
- "executionTimeMillisEstimate" : 0,
- "works" : 1368,
- "advanced" : 1368,
- "needTime" : 0,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "keyPattern" : {
- "active" : 1.0000000000000000
- },
- "indexName" : "active_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "active" : [
- "[true, true]"
- ]
- },
- "keysExamined" : 1368,
- "dupsTested" : 0,
- "dupsDropped" : 0,
- "seenInvalidated" : 0,
- "matchTested" : 0
- }
- }
- },
- {
- "nReturned" : 16,
- "executionTimeMillisEstimate" : 20,
- "totalKeysExamined" : 1368,
- "totalDocsExamined" : 1368,
- "executionStages" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "nReturned" : 16,
- "executionTimeMillisEstimate" : 20,
- "works" : 1368,
- "advanced" : 16,
- "needTime" : 1352,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "docsExamined" : 1368,
- "alreadyHasObj" : 0,
- "inputStage" : {
- "stage" : "IXSCAN",
- "nReturned" : 1368,
- "executionTimeMillisEstimate" : 0,
- "works" : 1368,
- "advanced" : 1368,
- "needTime" : 0,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "keyPattern" : {
- "_type" : 1.0000000000000000
- },
- "indexName" : "_type_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "_type" : [
- "[\"healthcare2\", \"healthcare2\"]"
- ]
- },
- "keysExamined" : 1368,
- "dupsTested" : 0,
- "dupsDropped" : 0,
- "seenInvalidated" : 0,
- "matchTested" : 0
- }
- }
- },
- {
- "nReturned" : 0,
- "executionTimeMillisEstimate" : 30,
- "totalKeysExamined" : 1368,
- "totalDocsExamined" : 1368,
- "executionStages" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "nReturned" : 0,
- "executionTimeMillisEstimate" : 30,
- "works" : 1368,
- "advanced" : 0,
- "needTime" : 1368,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "docsExamined" : 1368,
- "alreadyHasObj" : 0,
- "inputStage" : {
- "stage" : "IXSCAN",
- "nReturned" : 1368,
- "executionTimeMillisEstimate" : 0,
- "works" : 1368,
- "advanced" : 1368,
- "needTime" : 0,
- "needFetch" : 0,
- "saveState" : 99,
- "restoreState" : 99,
- "isEOF" : 0,
- "invalidates" : 0,
- "keyPattern" : {
- "age_from" : 1.0000000000000000
- },
- "indexName" : "age_from_1",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "age_from" : [
- "[-inf.0, 36.0]"
- ]
- },
- "keysExamined" : 1368,
- "dupsTested" : 0,
- "dupsDropped" : 0,
- "seenInvalidated" : 0,
- "matchTested" : 0
- }
- }
- },
- {
- "nReturned" : 101,
- "executionTimeMillisEstimate" : 60,
- "totalKeysExamined" : 1368,
- "totalDocsExamined" : 1368,
- "executionStages" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "_collectivity" : {
- "$eq" : null
- }
- },
- {
- "age_from" : {
- "$lte" : 36.0000000000000000
- }
- },
- {
- "_type" : {
- "$eq" : "healthcare2"
- }
- },
- {
- "active" : {
- "$eq" : true
- }
- },
- {
- "enabled" : {
- "$eq" : true
- }
- },
- {
- "own_risk" : {
- "$eq" : 375.0000000000000000
- }
- },
- {
- "age_to" : {
- "$gt" : 36.0000000000000000
- }
- }
- ]
- },
- "nReturned" : 101,
- "executionTimeMillisEstimate" : 60,
- "works" : 1368,
- "advanced" : 101,
- "needTime" : 1267,
- "needFetch" : 0,
- "saveState" : 74,
- "restoreState" : 74,
- "isEOF" : 0,
- "invalidates" : 0,
- "docsExamined" : 1368,
- "alreadyHasObj" : 0,
- "inputStage" : {
- "stage" : "IXSCAN",
- "nReturned" : 1368,
- "executionTimeMillisEstimate" : 0,
- "works" : 1368,
- "advanced" : 1368,
- "needTime" : 0,
- "needFetch" : 0,
- "saveState" : 74,
- "restoreState" : 74,
- "isEOF" : 0,
- "invalidates" : 0,
- "keyPattern" : {
- "_collectivity" : 1.0000000000000000
- },
- "indexName" : "_collectivity_1",
- "isMultiKey" : true,
- "direction" : "forward",
- "indexBounds" : {
- "_collectivity" : [
- "[null, null]"
- ]
- },
- "keysExamined" : 1368,
- "dupsTested" : 1368,
- "dupsDropped" : 0,
- "seenInvalidated" : 0,
- "matchTested" : 0
- }
- }
- }
- ]
- },
- "serverInfo" : {
- "host" : "acc-environment",
- "port" : 27017,
- "version" : "3.0.0",
- "gitVersion" : "a841fd6394365954886924a35076691b4d149168"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement