Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mongos> db.fs_files.find({ platform: "iOS", group_id: "active_users", group_number: 1428192000000, app_id: "muffinquest", key: "level" }).explain()
- {
- "queryPlanner" : {
- "mongosPlannerVersion" : 1,
- "winningPlan" : {
- "stage" : "SHARD_MERGE",
- "shards" : [
- {
- "shardName" : "xsf_shard_00",
- "connectionString" : "xsf_shard_00/xsf-db-01.xsf.local:27017,xsf-db-02.xsf.local:27017,xsf-db-03.xsf.local:27017",
- "serverInfo" : {
- "host" : "xsf-db-03",
- "port" : 27017,
- "version" : "3.0.2",
- "gitVersion" : "6201872043ecbbc0a4cc169b5482dcf385fc464f"
- },
- "plannerVersion" : 1,
- "namespace" : "xsf-content-analytics.fs_files",
- "indexFilterSet" : false,
- "parsedQuery" : {
- "$and" : [
- {
- "app_id" : {
- "$eq" : "muffinquest"
- }
- },
- {
- "group_id" : {
- "$eq" : "active_users"
- }
- },
- {
- "group_number" : {
- "$eq" : 1428192000000
- }
- },
- {
- "key" : {
- "$eq" : "level"
- }
- },
- {
- "platform" : {
- "$eq" : "iOS"
- }
- }
- ]
- },
- "winningPlan" : {
- "stage" : "SHARDING_FILTER",
- "inputStage" : {
- "stage" : "FETCH",
- "filter" : {
- "key" : {
- "$eq" : "level"
- }
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "group_number" : 1,
- "group_id" : 1,
- "key_id" : 1,
- "platform" : 1,
- "app_id" : 1,
- "scale" : 1,
- "date" : 1
- },
- "indexName" : "group_number_group_id_key_platform_app_id_scale_date",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "group_number" : [
- "[1428192000000.0, 1428192000000.0]"
- ],
- "group_id" : [
- "[\"active_users\", \"active_users\"]"
- ],
- "key_id" : [
- "[MinKey, MaxKey]"
- ],
- "platform" : [
- "[\"iOS\", \"iOS\"]"
- ],
- "app_id" : [
- "[\"muffinquest\", \"muffinquest\"]"
- ],
- "scale" : [
- "[MinKey, MaxKey]"
- ],
- "date" : [
- "[MinKey, MaxKey]"
- ]
- }
- }
- }
- },
- "rejectedPlans" : [
- {
- "stage" : "SHARDING_FILTER",
- "inputStage" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "group_id" : {
- "$eq" : "active_users"
- }
- },
- {
- "group_number" : {
- "$eq" : 1428192000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "platform" : 1,
- "period" : 1,
- "key" : 1,
- "app_id" : 1
- },
- "indexName" : "platform_period_key_app_id",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "platform" : [
- "[\"iOS\", \"iOS\"]"
- ],
- "period" : [
- "[MinKey, MaxKey]"
- ],
- "key" : [
- "[\"level\", \"level\"]"
- ],
- "app_id" : [
- "[\"muffinquest\", \"muffinquest\"]"
- ]
- }
- }
- }
- },
- {
- "stage" : "SHARDING_FILTER",
- "inputStage" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "group_id" : {
- "$eq" : "active_users"
- }
- },
- {
- "group_number" : {
- "$eq" : 1428192000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "key" : 1,
- "platform" : 1,
- "app_id" : 1,
- "scale" : 1,
- "date" : 1
- },
- "indexName" : "key_platform_app_id_scale_date",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "key" : [
- "[\"level\", \"level\"]"
- ],
- "platform" : [
- "[\"iOS\", \"iOS\"]"
- ],
- "app_id" : [
- "[\"muffinquest\", \"muffinquest\"]"
- ],
- "scale" : [
- "[MinKey, MaxKey]"
- ],
- "date" : [
- "[MinKey, MaxKey]"
- ]
- }
- }
- }
- }
- ]
- },
- {
- "shardName" : "xsf_shard_01",
- "connectionString" : "xsf_shard_01/xsf-db-04.xsf.local:27017,xsf-db-05.xsf.local:27017,xsf-db-06.xsf.local:27017",
- "serverInfo" : {
- "host" : "xsf-db-04",
- "port" : 27017,
- "version" : "3.0.2",
- "gitVersion" : "6201872043ecbbc0a4cc169b5482dcf385fc464f"
- },
- "plannerVersion" : 1,
- "namespace" : "xsf-content-analytics.fs_files",
- "indexFilterSet" : false,
- "parsedQuery" : {
- "$and" : [
- {
- "app_id" : {
- "$eq" : "muffinquest"
- }
- },
- {
- "group_id" : {
- "$eq" : "active_users"
- }
- },
- {
- "group_number" : {
- "$eq" : 1428192000000
- }
- },
- {
- "key" : {
- "$eq" : "level"
- }
- },
- {
- "platform" : {
- "$eq" : "iOS"
- }
- }
- ]
- },
- "winningPlan" : {
- "stage" : "SHARDING_FILTER",
- "inputStage" : {
- "stage" : "FETCH",
- "filter" : {
- "key" : {
- "$eq" : "level"
- }
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "group_number" : 1,
- "group_id" : 1,
- "key_id" : 1,
- "platform" : 1,
- "app_id" : 1,
- "scale" : 1,
- "date" : 1
- },
- "indexName" : "group_number_group_id_key_platform_app_id_scale_date",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "group_number" : [
- "[1428192000000.0, 1428192000000.0]"
- ],
- "group_id" : [
- "[\"active_users\", \"active_users\"]"
- ],
- "key_id" : [
- "[MinKey, MaxKey]"
- ],
- "platform" : [
- "[\"iOS\", \"iOS\"]"
- ],
- "app_id" : [
- "[\"muffinquest\", \"muffinquest\"]"
- ],
- "scale" : [
- "[MinKey, MaxKey]"
- ],
- "date" : [
- "[MinKey, MaxKey]"
- ]
- }
- }
- }
- },
- "rejectedPlans" : [
- {
- "stage" : "SHARDING_FILTER",
- "inputStage" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "group_id" : {
- "$eq" : "active_users"
- }
- },
- {
- "group_number" : {
- "$eq" : 1428192000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "platform" : 1,
- "period" : 1,
- "key" : 1,
- "app_id" : 1
- },
- "indexName" : "platform_period_key_app_id",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "platform" : [
- "[\"iOS\", \"iOS\"]"
- ],
- "period" : [
- "[MinKey, MaxKey]"
- ],
- "key" : [
- "[\"level\", \"level\"]"
- ],
- "app_id" : [
- "[\"muffinquest\", \"muffinquest\"]"
- ]
- }
- }
- }
- },
- {
- "stage" : "SHARDING_FILTER",
- "inputStage" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "group_id" : {
- "$eq" : "active_users"
- }
- },
- {
- "group_number" : {
- "$eq" : 1428192000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "key" : 1,
- "platform" : 1,
- "app_id" : 1,
- "scale" : 1,
- "date" : 1
- },
- "indexName" : "key_platform_app_id_scale_date",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "key" : [
- "[\"level\", \"level\"]"
- ],
- "platform" : [
- "[\"iOS\", \"iOS\"]"
- ],
- "app_id" : [
- "[\"muffinquest\", \"muffinquest\"]"
- ],
- "scale" : [
- "[MinKey, MaxKey]"
- ],
- "date" : [
- "[MinKey, MaxKey]"
- ]
- }
- }
- }
- }
- ]
- },
- {
- "shardName" : "xsf_shard_02",
- "connectionString" : "xsf_shard_02/xsf-db-07.xsf.local:27017,xsf-db-08.xsf.local:27017,xsf-db-09.xsf.local:27017",
- "serverInfo" : {
- "host" : "xsf-db-07",
- "port" : 27017,
- "version" : "3.0.2",
- "gitVersion" : "6201872043ecbbc0a4cc169b5482dcf385fc464f"
- },
- "plannerVersion" : 1,
- "namespace" : "xsf-content-analytics.fs_files",
- "indexFilterSet" : false,
- "parsedQuery" : {
- "$and" : [
- {
- "app_id" : {
- "$eq" : "muffinquest"
- }
- },
- {
- "group_id" : {
- "$eq" : "active_users"
- }
- },
- {
- "group_number" : {
- "$eq" : 1428192000000
- }
- },
- {
- "key" : {
- "$eq" : "level"
- }
- },
- {
- "platform" : {
- "$eq" : "iOS"
- }
- }
- ]
- },
- "winningPlan" : {
- "stage" : "SHARDING_FILTER",
- "inputStage" : {
- "stage" : "FETCH",
- "filter" : {
- "key" : {
- "$eq" : "level"
- }
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "group_number" : 1,
- "group_id" : 1,
- "key_id" : 1,
- "platform" : 1,
- "app_id" : 1,
- "scale" : 1,
- "date" : 1
- },
- "indexName" : "group_number_group_id_key_platform_app_id_scale_date",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "group_number" : [
- "[1428192000000.0, 1428192000000.0]"
- ],
- "group_id" : [
- "[\"active_users\", \"active_users\"]"
- ],
- "key_id" : [
- "[MinKey, MaxKey]"
- ],
- "platform" : [
- "[\"iOS\", \"iOS\"]"
- ],
- "app_id" : [
- "[\"muffinquest\", \"muffinquest\"]"
- ],
- "scale" : [
- "[MinKey, MaxKey]"
- ],
- "date" : [
- "[MinKey, MaxKey]"
- ]
- }
- }
- }
- },
- "rejectedPlans" : [
- {
- "stage" : "SHARDING_FILTER",
- "inputStage" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "group_id" : {
- "$eq" : "active_users"
- }
- },
- {
- "group_number" : {
- "$eq" : 1428192000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "platform" : 1,
- "period" : 1,
- "key" : 1,
- "app_id" : 1
- },
- "indexName" : "platform_period_key_app_id",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "platform" : [
- "[\"iOS\", \"iOS\"]"
- ],
- "period" : [
- "[MinKey, MaxKey]"
- ],
- "key" : [
- "[\"level\", \"level\"]"
- ],
- "app_id" : [
- "[\"muffinquest\", \"muffinquest\"]"
- ]
- }
- }
- }
- },
- {
- "stage" : "SHARDING_FILTER",
- "inputStage" : {
- "stage" : "FETCH",
- "filter" : {
- "$and" : [
- {
- "group_id" : {
- "$eq" : "active_users"
- }
- },
- {
- "group_number" : {
- "$eq" : 1428192000000
- }
- }
- ]
- },
- "inputStage" : {
- "stage" : "IXSCAN",
- "keyPattern" : {
- "key" : 1,
- "platform" : 1,
- "app_id" : 1,
- "scale" : 1,
- "date" : 1
- },
- "indexName" : "key_platform_app_id_scale_date",
- "isMultiKey" : false,
- "direction" : "forward",
- "indexBounds" : {
- "key" : [
- "[\"level\", \"level\"]"
- ],
- "platform" : [
- "[\"iOS\", \"iOS\"]"
- ],
- "app_id" : [
- "[\"muffinquest\", \"muffinquest\"]"
- ],
- "scale" : [
- "[MinKey, MaxKey]"
- ],
- "date" : [
- "[MinKey, MaxKey]"
- ]
- }
- }
- }
- }
- ]
- }
- ]
- }
- },
- "ok" : 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement