Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.17 KB | None | 0 0
  1. > db.eos.find({$or:[{to:"eospokerwins"},{from: "eospokerwins"}]}).limit(10).sort( { blockNumber: -1 } ).explain("executionStats")
  2. {
  3.     "queryPlanner" : {
  4.         "plannerVersion" : 1,
  5.         "namespace" : "test.eos",
  6.         "indexFilterSet" : false,
  7.         "parsedQuery" : {
  8.             "$or" : [
  9.                 {
  10.                     "from" : {
  11.                         "$eq" : "eospokerwins"
  12.                     }
  13.                 },
  14.                 {
  15.                     "to" : {
  16.                         "$eq" : "eospokerwins"
  17.                     }
  18.                 }
  19.             ]
  20.         },
  21.         "winningPlan" : {
  22.             "stage" : "SUBPLAN",
  23.             "inputStage" : {
  24.                 "stage" : "LIMIT",
  25.                 "limitAmount" : 10,
  26.                 "inputStage" : {
  27.                     "stage" : "FETCH",
  28.                     "filter" : {
  29.                         "$or" : [
  30.                             {
  31.                                 "from" : {
  32.                                     "$eq" : "eospokerwins"
  33.                                 }
  34.                             },
  35.                             {
  36.                                 "to" : {
  37.                                     "$eq" : "eospokerwins"
  38.                                 }
  39.                             }
  40.                         ]
  41.                     },
  42.                     "inputStage" : {
  43.                         "stage" : "IXSCAN",
  44.                         "keyPattern" : {
  45.                             "blockNumber" : -1,
  46.                             "from" : 1,
  47.                             "to" : 1
  48.                         },
  49.                         "indexName" : "blockNumber_-1_from_1_to_1",
  50.                         "isMultiKey" : false,
  51.                         "multiKeyPaths" : {
  52.                             "blockNumber" : [ ],
  53.                             "from" : [ ],
  54.                             "to" : [ ]
  55.                         },
  56.                         "isUnique" : false,
  57.                         "isSparse" : false,
  58.                         "isPartial" : false,
  59.                         "indexVersion" : 2,
  60.                         "direction" : "forward",
  61.                         "indexBounds" : {
  62.                             "blockNumber" : [
  63.                                 "[MaxKey, MinKey]"
  64.                             ],
  65.                             "from" : [
  66.                                 "[MinKey, MaxKey]"
  67.                             ],
  68.                             "to" : [
  69.                                 "[MinKey, MaxKey]"
  70.                             ]
  71.                         }
  72.                     }
  73.                 }
  74.             }
  75.         },
  76.         "rejectedPlans" : [ ]
  77.     },
  78.     "executionStats" : {
  79.         "executionSuccess" : true,
  80.         "nReturned" : 10,
  81.         "executionTimeMillis" : 337169,
  82.         "totalKeysExamined" : 4136346,
  83.         "totalDocsExamined" : 4136346,
  84.         "executionStages" : {
  85.             "stage" : "SUBPLAN",
  86.             "nReturned" : 10,
  87.             "executionTimeMillisEstimate" : 335428,
  88.             "works" : 4136347,
  89.             "advanced" : 10,
  90.             "needTime" : 4136336,
  91.             "needYield" : 0,
  92.             "saveState" : 35220,
  93.             "restoreState" : 35220,
  94.             "isEOF" : 1,
  95.             "invalidates" : 0,
  96.             "inputStage" : {
  97.                 "stage" : "LIMIT",
  98.                 "nReturned" : 10,
  99.                 "executionTimeMillisEstimate" : 334878,
  100.                 "works" : 4136346,
  101.                 "advanced" : 10,
  102.                 "needTime" : 4136336,
  103.                 "needYield" : 0,
  104.                 "saveState" : 35220,
  105.                 "restoreState" : 35220,
  106.                 "isEOF" : 1,
  107.                 "invalidates" : 0,
  108.                 "limitAmount" : 10,
  109.                 "inputStage" : {
  110.                     "stage" : "FETCH",
  111.                     "filter" : {
  112.                         "$or" : [
  113.                             {
  114.                                 "from" : {
  115.                                     "$eq" : "eospokerwins"
  116.                                 }
  117.                             },
  118.                             {
  119.                                 "to" : {
  120.                                     "$eq" : "eospokerwins"
  121.                                 }
  122.                             }
  123.                         ]
  124.                     },
  125.                     "nReturned" : 10,
  126.                     "executionTimeMillisEstimate" : 334408,
  127.                     "works" : 4136346,
  128.                     "advanced" : 10,
  129.                     "needTime" : 4136336,
  130.                     "needYield" : 0,
  131.                     "saveState" : 35220,
  132.                     "restoreState" : 35220,
  133.                     "isEOF" : 0,
  134.                     "invalidates" : 0,
  135.                     "docsExamined" : 4136346,
  136.                     "alreadyHasObj" : 0,
  137.                     "inputStage" : {
  138.                         "stage" : "IXSCAN",
  139.                         "nReturned" : 4136346,
  140.                         "executionTimeMillisEstimate" : 4529,
  141.                         "works" : 4136346,
  142.                         "advanced" : 4136346,
  143.                         "needTime" : 0,
  144.                         "needYield" : 0,
  145.                         "saveState" : 35220,
  146.                         "restoreState" : 35220,
  147.                         "isEOF" : 0,
  148.                         "invalidates" : 0,
  149.                         "keyPattern" : {
  150.                             "blockNumber" : -1,
  151.                             "from" : 1,
  152.                             "to" : 1
  153.                         },
  154.                         "indexName" : "blockNumber_-1_from_1_to_1",
  155.                         "isMultiKey" : false,
  156.                         "multiKeyPaths" : {
  157.                             "blockNumber" : [ ],
  158.                             "from" : [ ],
  159.                             "to" : [ ]
  160.                         },
  161.                         "isUnique" : false,
  162.                         "isSparse" : false,
  163.                         "isPartial" : false,
  164.                         "indexVersion" : 2,
  165.                         "direction" : "forward",
  166.                         "indexBounds" : {
  167.                             "blockNumber" : [
  168.                                 "[MaxKey, MinKey]"
  169.                             ],
  170.                             "from" : [
  171.                                 "[MinKey, MaxKey]"
  172.                             ],
  173.                             "to" : [
  174.                                 "[MinKey, MaxKey]"
  175.                             ]
  176.                         },
  177.                         "keysExamined" : 4136346,
  178.                         "seeks" : 1,
  179.                         "dupsTested" : 0,
  180.                         "dupsDropped" : 0,
  181.                         "seenInvalidated" : 0
  182.                     }
  183.                 }
  184.             }
  185.         }
  186.     },
  187.     "serverInfo" : {
  188.         "host" : "ip-172-31-11-142",
  189.         "port" : 27017,
  190.         "version" : "4.0.7",
  191.         "gitVersion" : "1b82c812a9c0bbf6dc79d5400de9ea99e6ffa025"
  192.     },
  193.     "ok" : 1
  194. }
  195. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement