Boris Tashkulov
08/15/2025, 8:56 AMMayank
Boris Tashkulov
08/15/2025, 2:01 PMstree:
numEntriesScannedInFilter: 0
numEntriesScannedPostFilter: 8
inverted:
numEntriesScannedInFilter: 0
numEntriesScannedPostFilter: 8
no index:
numEntriesScannedInFilter: 1000
numEntriesScannedPostFilter: 4
does it mean request plan doesn’t tell about using star tree index?Boris Tashkulov
08/15/2025, 2:09 PMMayank
Boris Tashkulov
08/15/2025, 2:48 PMWhat are the above stats without ST index?same request to different tables with different index
Boris Tashkulov
08/15/2025, 3:03 PM"dateTimeFieldSpecs": [
{
"name": "settlementTime",
"dataType": "STRING",
"format": "SIMPLE_DATE_FORMAT",
"granularity": "1:MILLISECONDS",
"notNull": true
},
{
"name": "settlementTimeMs",
"dataType": "LONG",
"format": "EPOCH",
"granularity": "1:MINUTES",
"notNull": true
},
{
"name": "settlementTimeMin",
"dataType": "LONG",
"format": "EPOCH",
"granularity": "1:MINUTES",
"notNull": true
}
]
and I would like to run 10-50k queries/s with settlement ranges from 1 min up to 1 year with >100 ms latency
select
"action" as method,
count(*) as documents,
sum(amount) as total_amount,
max(amount) as max_amount,
min(amount) as min_amount,
avg(amount) as avg_amount,
PERCENTILE(amount, 50) as p50,
PERCENTILE(amount, 85) as p85,
PERCENTILE(amount, 95) as p95,
PERCENTILE(amount, 99.9) as p99_9
from transactions
where nameOrig = :nameOrig and nameDest = :nameDest
and settlementTimeMin between :fromSettlementTimeMin and :toSettlementTimeMin
group by "action";
I’m not sure but ST index will not suit here cause it can be 0, 1 or 2 tx peer minute(human can’t pay faster lol).
Maybe split settlement into columns for each time unit and add that columns into dimensionsSplitOrder?