{
  "serverInfo": {
    "host": "M-C02DR0F9ML85.fritz.box",
    "port": 8080,
    "version": "5.3.0-rc3",
    "gitVersion": "cf6ac4d17da6eb6562f503a515ea6aea2ccbf944"
  },
  "serverParameters": {
    "internalQueryFacetBufferSizeBytes": 104857600,
    "internalQueryFacetMaxOutputDocSizeBytes": 104857600,
    "internalLookupStageIntermediateDocumentMaxSizeBytes": 104857600,
    "internalDocumentSourceGroupMaxMemoryBytes": 104857600,
    "internalQueryMaxBlockingSortMemoryUsageBytes": 104857600,
    "internalQueryProhibitBlockingMergeOnMongoS": 0,
    "internalQueryMaxAddToSetBytes": 104857600,
    "internalDocumentSourceSetWindowFieldsMaxMemoryBytes": 104857600
  },
  "splitPipeline": null,
  "shards": {
    "shard2": {
      "host": "localhost:8002",
      "stages": [
        {
          "$cursor": {
            "queryPlanner": {
              "namespace": "kashmir.folks",
              "indexFilterSet": false,
              "parsedQuery": {},
              "queryHash": "17830885",
              "planCacheKey": "17830885",
              "maxIndexedOrSolutionsReached": false,
              "maxIndexedAndSolutionsReached": false,
              "maxScansToExplodeReached": false,
              "winningPlan": {
                "queryPlan": {
                  "stage": "SHARDING_FILTER",
                  "planNodeId": 2,
                  "inputStage": {
                    "stage": "COLLSCAN",
                    "planNodeId": 1,
                    "filter": {},
                    "direction": "forward"
                  }
                },
                "slotBasedPlan": {
                  "slots": "$$RESULT=s6 $$RID=s7 env: { s2 = Nothing (SEARCH_META), s5 = ShardFilterer (shardFilterer), s3 = Timestamp(1654597519, 1) (CLUSTER_TIME), s1 = TimeZoneDatabase(Asia/Dubai...Indian/Kerguelen) (timeZoneDB), s4 = 1654597520024 (NOW) }",
                  "stages": "[2] filter {shardFilter (s5, s10)} \n[2] project [s10 = if (! exists (s8), Nothing, s9)] \n[2] mkbson s9 [district_id = s8] true false \n[2] project [s8 = let [l1.0 = fillEmpty (getField (s6, \"district_id\"), null)] if (isArray (l1.0), Nothing, l1.0)] \n[1] scan s6 s7 none none none none [] @\"e6b618ce-0a01-4079-a442-8feee6277bf7\" true false "
                }
              },
              "rejectedPlans": []
            },
            "executionStats": {
              "executionSuccess": true,
              "nReturned": 6,
              "executionTimeMillis": 2,
              "totalKeysExamined": 0,
              "totalDocsExamined": 6,
              "executionStages": {
                "stage": "filter",
                "planNodeId": 2,
                "nReturned": 6,
                "executionTimeMillisEstimate": 0,
                "opens": 1,
                "closes": 1,
                "saveState": 1,
                "restoreState": 1,
                "isEOF": 1,
                "numTested": 6,
                "filter": "shardFilter (s5, s10) ",
                "inputStage": {
                  "stage": "project",
                  "planNodeId": 2,
                  "nReturned": 6,
                  "executionTimeMillisEstimate": 0,
                  "opens": 1,
                  "closes": 1,
                  "saveState": 1,
                  "restoreState": 1,
                  "isEOF": 1,
                  "projections": {
                    "10": "if (! exists (s8), Nothing, s9) "
                  },
                  "inputStage": {
                    "stage": "mkbson",
                    "planNodeId": 2,
                    "nReturned": 6,
                    "executionTimeMillisEstimate": 0,
                    "opens": 1,
                    "closes": 1,
                    "saveState": 1,
                    "restoreState": 1,
                    "isEOF": 1,
                    "objSlot": 9,
                    "fields": [],
                    "projectFields": ["district_id"],
                    "projectSlots": [8],
                    "forceNewObject": true,
                    "returnOldObject": false,
                    "inputStage": {
                      "stage": "project",
                      "planNodeId": 2,
                      "nReturned": 6,
                      "executionTimeMillisEstimate": 0,
                      "opens": 1,
                      "closes": 1,
                      "saveState": 1,
                      "restoreState": 1,
                      "isEOF": 1,
                      "projections": {
                        "8": "let [l1.0 = fillEmpty (getField (s6, \"district_id\"), null)] if (isArray (l1.0), Nothing, l1.0) "
                      },
                      "inputStage": {
                        "stage": "scan",
                        "planNodeId": 1,
                        "nReturned": 6,
                        "executionTimeMillisEstimate": 0,
                        "opens": 1,
                        "closes": 1,
                        "saveState": 1,
                        "restoreState": 1,
                        "isEOF": 1,
                        "numReads": 6,
                        "recordSlot": 6,
                        "recordIdSlot": 7,
                        "fields": [],
                        "outputSlots": []
                      }
                    }
                  }
                }
              },
              "allPlansExecution": []
            }
          },
          "nReturned": 6,
          "executionTimeMillisEstimate": 0
        },
        {
          "$lookup": {
            "from": "districts",
            "as": "district",
            "localField": "district_id",
            "foreignField": "_id",
            "unwinding": {
              "preserveNullAndEmptyArrays": false
            }
          },
          "totalDocsExamined": 5,
          "totalKeysExamined": 5,
          "collectionScans": 0,
          "indexesUsed": ["_id_"],
          "nReturned": 6,
          "executionTimeMillisEstimate": 2
        }
      ]
    }
  },
  "command": {
    "aggregate": "folks",
    "pipeline": [
      {
        "$lookup": {
          "from": "districts",
          "localField": "district_id",
          "foreignField": "_id",
          "as": "district"
        }
      },
      {
        "$unwind": "$district"
      }
    ],
    "cursor": {},
    "allowDiskUse": true,
    "maxTimeMS": 60000
  },
  "ok": 1,
  "$clusterTime": {
    "clusterTime": {
      "$timestamp": {
        "t": 1654597519,
        "i": 1
      }
    },
    "signature": {
      "hash": {
        "$binary": {
          "base64": "AAAAAAAAAAAAAAAAAAAAAAAAAAA=",
          "subType": "00"
        }
      },
      "keyId": 0
    }
  },
  "operationTime": {
    "$timestamp": {
      "t": 1654597517,
      "i": 20
    }
  }
}
