execution 2:
db.btProductAccessMapping.aggregate([{
“$match”: {
“$and”: [{
“accessTypeName”: “Ethernet”
},
{
“aspeedNumValue”: 1000000
},
{
“popName”: “Frankfurt Genfer Straße”
},
{
“countryId”: “DE”
},
{
“btProductName”: “BT iVPN”
}
]
}
},
{
“$group”: {
“_id”: {
“supplierName”: “$supplierName”,
“supplierId”: “$supplierId”
}
}
},
{
“$project”: {
“_id”: 0,
“supplierName”: “$_id.supplierName”,
“supplierId”: “$_id.supplierId”
}
}, {
“$sort”: {
“supplierName”: 1
}
}
]).explain(“executionStats”)
{
stages: [
{
‘$cursor’: {
queryPlanner: {
plannerVersion: 1,
namespace: ‘btProductAvailabilityDB_staging.btProductAccessMapping’,
indexFilterSet: false,
parsedQuery: {
‘$and’: [
{
accessTypeName: {
‘$eq’: ‘Ethernet’
}
},
{
aspeedNumValue: {
‘$eq’: 1000000
}
},
{
btProductName: {
‘$eq’: ‘BT iVPN’
}
},
{
countryId: {
‘$eq’: ‘DE’
}
},
{
popName: {
‘$eq’: ‘Frankfurt Genfer Straße’
}
}
]
},
queryHash: ‘26F32A64’,
planCacheKey: ‘29241033’,
winningPlan: {
stage: ‘PROJECTION_SIMPLE’,
transformBy: {
supplierId: 1,
supplierName: 1,
_id: 0
},
inputStage: {
stage: ‘FETCH’,
filter: {
aspeedNumValue: {
‘$eq’: 1000000
}
},
inputStage: {
stage: ‘IXSCAN’,
keyPattern: {
countryId: 1,
countryName: 1,
btProductName: 1,
btProductDisplayName: 1,
supplierName: 1,
supplierProductName: 1,
accessTypeName: 1,
lmpName: 1,
lmpConfigurationName: 1,
interfaceName: 1,
framingName: 1,
connectorName: 1,
popName: 1,
popTypeName: 1
},
indexName: ‘USSQuickQuotingFilters’,
isMultiKey: false,
multiKeyPaths: {
countryId: ,
countryName: ,
btProductName: ,
btProductDisplayName: ,
supplierName: ,
supplierProductName: ,
accessTypeName: ,
lmpName: ,
lmpConfigurationName: ,
interfaceName: ,
framingName: ,
connectorName: ,
popName: ,
popTypeName:
},
isUnique: false,
isSparse: false,
isPartial: false,
indexVersion: 2,
direction: ‘forward’,
indexBounds: {
countryId: [
‘[“DE”, “DE”]’
],
countryName: [
‘[MinKey, MaxKey]’
],
btProductName: [
‘[“BT iVPN”, “BT iVPN”]’
],
btProductDisplayName: [
‘[MinKey, MaxKey]’
],
supplierName: [
‘[MinKey, MaxKey]’
],
supplierProductName: [
‘[MinKey, MaxKey]’
],
accessTypeName: [
‘[“Ethernet”, “Ethernet”]’
],
lmpName: [
‘[MinKey, MaxKey]’
],
lmpConfigurationName: [
‘[MinKey, MaxKey]’
],
interfaceName: [
‘[MinKey, MaxKey]’
],
framingName: [
‘[MinKey, MaxKey]’
],
connectorName: [
‘[MinKey, MaxKey]’
],
popName: [
‘[“Frankfurt Genfer Straße”, “Frankfurt Genfer Straße”]’
],
popTypeName: [
‘[MinKey, MaxKey]’
]
}
}
}
},
rejectedPlans: [
{
stage: ‘PROJECTION_SIMPLE’,
transformBy: {
supplierId: 1,
supplierName: 1,
_id: 0
},
inputStage: {
stage: ‘FETCH’,
filter: {
‘$and’: [
{
aspeedNumValue: {
‘$eq’: 1000000
}
},
{
popName: {
‘$eq’: ‘Frankfurt Genfer Straße’
}
}
]
},
inputStage: {
stage: ‘IXSCAN’,
keyPattern: {
accessTypeName: 1,
cpeAccessType: 1,
supportResilientPop: 1,
btProductName: 1,
btProductAvailabilityStatus: 1,
ipv6Enabled: 1,
ethernetPhaseAttribute: 1,
aspeedValue: 1,
aspeedUom: 1,
pspeedValue: 1,
pspeedUom: 1,
aspeedUpValue: 1,
aspeedUpUom: 1,
serviceVariant: 1,
supplierId: 1,
supplierProductId: 1,
interfaceId: 1,
framingId: 1,
connectorId: 1,
acat: 1,
countryId: 1
},
indexName: ‘accessTypeName_1_cpeAccessType_1_supportResilientPop_1_btProductName_1_btProductAvailabilityStatus_1_ipv6Enabled_1_ethernetPhaseAttribute_1_aspeedValue_1_aspeedUom_1_pspeedValue_1_pspeedUom_1_aspeedUpValue_1_aspeedUpUom_1_serviceVariant_1_supplierId_1_supplierProductId_1_interfaceId_1_framingId_1_connectorId_1_acat_1_countryId_1’,
isMultiKey: false,
multiKeyPaths: {
accessTypeName: ,
cpeAccessType: ,
supportResilientPop: ,
btProductName: ,
btProductAvailabilityStatus: ,
ipv6Enabled: ,
ethernetPhaseAttribute: ,
aspeedValue: ,
aspeedUom: ,
pspeedValue: ,
pspeedUom: ,
aspeedUpValue: ,
aspeedUpUom: ,
serviceVariant: ,
supplierId: ,
supplierProductId: ,
interfaceId: ,
framingId: ,
connectorId: ,
acat: ,
countryId:
},
isUnique: false,
isSparse: false,
isPartial: false,
indexVersion: 2,
direction: ‘forward’,
indexBounds: {
accessTypeName: [
‘[“Ethernet”, “Ethernet”]’
],
cpeAccessType: [
‘[MinKey, MaxKey]’
],
supportResilientPop: [
‘[MinKey, MaxKey]’
],
btProductName: [
‘[“BT iVPN”, “BT iVPN”]’
],
btProductAvailabilityStatus: [
‘[MinKey, MaxKey]’
],
ipv6Enabled: [
‘[MinKey, MaxKey]’
],
ethernetPhaseAttribute: [
‘[MinKey, MaxKey]’
],
aspeedValue: [
‘[MinKey, MaxKey]’
],
aspeedUom: [
‘[MinKey, MaxKey]’
],
pspeedValue: [
‘[MinKey, MaxKey]’
],
pspeedUom: [
‘[MinKey, MaxKey]’
],
aspeedUpValue: [
‘[MinKey, MaxKey]’
],
aspeedUpUom: [
‘[MinKey, MaxKey]’
],
serviceVariant: [
‘[MinKey, MaxKey]’
],
supplierId: [
‘[MinKey, MaxKey]’
],
supplierProductId: [
‘[MinKey, MaxKey]’
],
interfaceId: [
‘[MinKey, MaxKey]’
],
framingId: [
‘[MinKey, MaxKey]’
],
connectorId: [
‘[MinKey, MaxKey]’
],
acat: [
‘[MinKey, MaxKey]’
],
countryId: [
‘[“DE”, “DE”]’
]
}
}
}
},
{
stage: ‘PROJECTION_SIMPLE’,
transformBy: {
supplierId: 1,
supplierName: 1,
_id: 0
},
inputStage: {
stage: ‘FETCH’,
filter: {
‘$and’: [
{
aspeedNumValue: {
‘$eq’: 1000000
}
},
{
btProductName: {
‘$eq’: ‘BT iVPN’
}
},
{
popName: {
‘$eq’: ‘Frankfurt Genfer Straße’
}
}
]
},
inputStage: {
stage: ‘IXSCAN’,
keyPattern: {
countryId: 1,
btProductId: 1,
popId: 1,
platformId: 1,
platformName: 1,
accessTypeId: 1,
accessTypeName: 1,
supplierId: 1,
supplierProductId: 1,
aspeedValue: 1,
aspeedUom: 1,
aspeedUpValue: 1,
aspeedUpUom: 1,
pspeedValue: 1,
pspeedUom: 1,
pspeedUpValue: 1,
pspeedUpUom: 1,
portTypeId: 1,
lmpId: 1
},
indexName: ‘countryId_1_btProductId_1_popId_1_platformId_1_platformName_1_accessTypeId_1_accessTypeName_1_supplierId_1_supplierProductId_1_aspeedValue_1_aspeedUom_1_aspeedUpValue_1_aspeedUpUom_1_pspeedValue_1_pspeedUom_1_pspeedUpValue_1_pspeedUpUom_1_portTypeId_1_lmpId_1’,
isMultiKey: false,
multiKeyPaths: {
countryId: ,
btProductId: ,
popId: ,
platformId: ,
platformName: ,
accessTypeId: ,
accessTypeName: ,
supplierId: ,
supplierProductId: ,
aspeedValue: ,
aspeedUom: ,
aspeedUpValue: ,
aspeedUpUom: ,
pspeedValue: ,
pspeedUom: ,
pspeedUpValue: ,
pspeedUpUom: ,
portTypeId: ,
lmpId:
},
isUnique: false,
isSparse: false,
isPartial: false,
indexVersion: 2,
direction: ‘forward’,
indexBounds: {
countryId: [
‘[“DE”, “DE”]’
],
btProductId: [
‘[MinKey, MaxKey]’
],
popId: [
‘[MinKey, MaxKey]’
],
platformId: [
‘[MinKey, MaxKey]’
],
platformName: [
‘[MinKey, MaxKey]’
],
accessTypeId: [
‘[MinKey, MaxKey]’
],
accessTypeName: [
‘[“Ethernet”, “Ethernet”]’
],
supplierId: [
‘[MinKey, MaxKey]’
],
supplierProductId: [
‘[MinKey, MaxKey]’
],
aspeedValue: [
‘[MinKey, MaxKey]’
],
aspeedUom: [
‘[MinKey, MaxKey]’
],
aspeedUpValue: [
‘[MinKey, MaxKey]’
],
aspeedUpUom: [
‘[MinKey, MaxKey]’
],
pspeedValue: [
‘[MinKey, MaxKey]’
],
pspeedUom: [
‘[MinKey, MaxKey]’
],
pspeedUpValue: [
‘[MinKey, MaxKey]’
],
pspeedUpUom: [
‘[MinKey, MaxKey]’
],
portTypeId: [
‘[MinKey, MaxKey]’
],
lmpId: [
‘[MinKey, MaxKey]’
]
}
}
}
},
{
stage: ‘PROJECTION_SIMPLE’,
transformBy: {
supplierId: 1,
supplierName: 1,
_id: 0
},
inputStage: {
stage: ‘FETCH’,
filter: {
popName: {
‘$eq’: ‘Frankfurt Genfer Straße’
}
},
inputStage: {
stage: ‘IXSCAN’,
keyPattern: {
accessTypeName: 1,
btProductName: 1,
supplierName: 1,
supplierProductName: 1,
portTypeId: 1,
popTypeId: 1,
aspeedNumValue: 1,
pspeedNumValue: 1,
aspeedUpNumValue: 1,
pspeedUpNumValue: 1,
countryId: 1
},
indexName: ‘Staffscreenfilter’,
isMultiKey: false,
multiKeyPaths: {
accessTypeName: ,
btProductName: ,
supplierName: ,
supplierProductName: ,
portTypeId: ,
popTypeId: ,
aspeedNumValue: ,
pspeedNumValue: ,
aspeedUpNumValue: ,
pspeedUpNumValue: ,
countryId:
},
isUnique: false,
isSparse: false,
isPartial: false,
indexVersion: 2,
direction: ‘forward’,
indexBounds: {
accessTypeName: [
‘[“Ethernet”, “Ethernet”]’
],
btProductName: [
‘[“BT iVPN”, “BT iVPN”]’
],
supplierName: [
‘[MinKey, MaxKey]’
],
supplierProductName: [
‘[MinKey, MaxKey]’
],
portTypeId: [
‘[MinKey, MaxKey]’
],
popTypeId: [
‘[MinKey, MaxKey]’
],
aspeedNumValue: [
‘[1000000, 1000000]’
],
pspeedNumValue: [
‘[MinKey, MaxKey]’
],
aspeedUpNumValue: [
‘[MinKey, MaxKey]’
],
pspeedUpNumValue: [
‘[MinKey, MaxKey]’
],
countryId: [
‘[“DE”, “DE”]’
]
}
}
}
}
]
},
executionStats: {
executionSuccess: true,
nReturned: 2026,
executionTimeMillis: 1922,
totalKeysExamined: 27604,
totalDocsExamined: 26952,
executionStages: {
stage: ‘PROJECTION_SIMPLE’,
nReturned: 2026,
executionTimeMillisEstimate: 1411,
works: 27604,
advanced: 2026,
needTime: 25577,
needYield: 0,
saveState: 125,
restoreState: 125,
isEOF: 1,
transformBy: {
supplierId: 1,
supplierName: 1,
_id: 0
},
inputStage: {
stage: ‘FETCH’,
filter: {
aspeedNumValue: {
‘$eq’: 1000000
}
},
nReturned: 2026,
executionTimeMillisEstimate: 1411,
works: 27604,
advanced: 2026,
needTime: 25577,
needYield: 0,
saveState: 125,
restoreState: 125,
isEOF: 1,
docsExamined: 26952,
alreadyHasObj: 0,
inputStage: {
stage: ‘IXSCAN’,
nReturned: 26952,
executionTimeMillisEstimate: 88,
works: 27604,
advanced: 26952,
needTime: 651,
needYield: 0,
saveState: 125,
restoreState: 125,
isEOF: 1,
keyPattern: {
countryId: 1,
countryName: 1,
btProductName: 1,
btProductDisplayName: 1,
supplierName: 1,
supplierProductName: 1,
accessTypeName: 1,
lmpName: 1,
lmpConfigurationName: 1,
interfaceName: 1,
framingName: 1,
connectorName: 1,
popName: 1,
popTypeName: 1
},
indexName: ‘USSQuickQuotingFilters’,
isMultiKey: false,
multiKeyPaths: {
countryId: ,
countryName: ,
btProductName: ,
btProductDisplayName: ,
supplierName: ,
supplierProductName: ,
accessTypeName: ,
lmpName: ,
lmpConfigurationName: ,
interfaceName: ,
framingName: ,
connectorName: ,
popName: ,
popTypeName:
},
isUnique: false,
isSparse: false,
isPartial: false,
indexVersion: 2,
direction: ‘forward’,
indexBounds: {
countryId: [
‘[“DE”, “DE”]’
],
countryName: [
‘[MinKey, MaxKey]’
],
btProductName: [
‘[“BT iVPN”, “BT iVPN”]’
],
btProductDisplayName: [
‘[MinKey, MaxKey]’
],
supplierName: [
‘[MinKey, MaxKey]’
],
supplierProductName: [
‘[MinKey, MaxKey]’
],
accessTypeName: [
‘[“Ethernet”, “Ethernet”]’
],
lmpName: [
‘[MinKey, MaxKey]’
],
lmpConfigurationName: [
‘[MinKey, MaxKey]’
],
interfaceName: [
‘[MinKey, MaxKey]’
],
framingName: [
‘[MinKey, MaxKey]’
],
connectorName: [
‘[MinKey, MaxKey]’
],
popName: [
‘[“Frankfurt Genfer Straße”, “Frankfurt Genfer Straße”]’
],
popTypeName: [
‘[MinKey, MaxKey]’
]
},
keysExamined: 27604,
seeks: 652,
dupsTested: 0,
dupsDropped: 0
}
}
}
}
},
nReturned: 2026,
executionTimeMillisEstimate: 1209
},
{
‘$group’: {
_id: {
supplierName: ‘$supplierName’,
supplierId: ‘$supplierId’
}
},
nReturned: 10,
executionTimeMillisEstimate: 1209
},
{
‘$project’: {
supplierName: ‘$_id.supplierName’,
supplierId: ‘$_id.supplierId’,
_id: false
},
nReturned: 10,
executionTimeMillisEstimate: 1209
},
{
‘$sort’: {
sortKey: {
supplierName: 1
}
},
nReturned: 10,
executionTimeMillisEstimate: 1209
}
],
serverInfo: {
host: ‘blp03537258’,
port: 61901,
version: ‘4.4.11’,
gitVersion: ‘b7530cacde8432d2f22ed506f258ff9c3b45c5e9’
},
ok: 1,
‘$clusterTime’: {
clusterTime: Timestamp({ t: 1677650309, i: 1 }),
signature: {
hash: Binary(Buffer.from(“2a91e8cdae5cce2b058b76d29d370d3ec487472d”, “hex”), 0),
keyId: 7163629481175810000
}
},
operationTime: Timestamp({ t: 1677650309, i: 1 })
}