Mayank
Buchi Reddy
08/20/2020, 10:14 PM{
"resultTable": {
"dataSchema": {
"columnDataTypes": [
"INT"
],
"columnNames": [
"distinctcount(service_id)"
]
},
"rows": [
[
2
]
]
},
"exceptions": [],
"numServersQueried": 4,
"numServersResponded": 4,
"numSegmentsQueried": 180,
"numSegmentsProcessed": 180,
"numSegmentsMatched": 179,
"numConsumingSegmentsQueried": 8,
"numDocsScanned": 127901110,
"numEntriesScannedInFilter": 131526370,
"numEntriesScannedPostFilter": 127901110,
"numGroupsLimitReached": false,
"totalDocs": 128941076,
"timeUsedMs": 3339,
"segmentStatistics": [],
"traceInfo": {},
"minConsumingFreshnessTimeMs": 1597961648907
}
Buchi Reddy
08/20/2020, 10:14 PMMayank
Buchi Reddy
08/20/2020, 10:20 PMMayank
Mayank
Mayank
Buchi Reddy
08/20/2020, 10:26 PMMayank
aggregate-metrics
does that in pinot too, right?Mayank
Mayank
Mayank
Mayank
aggregate-metrics
. However, if you still see 120M records in MongoDB, it might also have to scan the same amount of data.Buchi Reddy
08/20/2020, 10:43 PMaggregate-metrics
?Mayank
In the following example, we enable aggregateMetrics by setting it to true in tableIndexConfig. Note, that all the metrics (count in this case) have to be noDictionaryColumns. Also, note that even though the dimension country is defined as noDictionaryColumn, the aggregateMetrics setting will take precedence and the dimension country will use dictionary based indexing.
"tableIndexConfig": {
"aggregateMetrics": true,
"noDictionaryColumns": [
"country",
"count"
],
"streamConfigs": {
...
}
Kishore G