Sharon
12/04/2024, 7:53 AMFROM
testsignupinfo3
WHERE
"eventtime" BETWEEN CAST('2024-06-01 00:00' AS TIMESTAMP) AND CAST('2024-06-30 23:59' AS TIMESTAMP)
GROUP BY
"channel"
I had first run the query on a table without timestamp indexes.And then on a table with indexes.The query performance in both cases are the same.
I have included the following in my table config
"tableIndexConfig" : {
"invertedIndexColumns" : ["eventnumber","isbounce"],
"loadMode" : "MMAP",
"rangeIndexVersion": 2,
"rangeIndexColumns": ["eventtime"]
},
{
"name": "eventtime",
"encodingType": "DICTIONARY",
"indexTypes": ["TIMESTAMP"],
"timestampConfig": {
"granularities": [
"MILLISECONDS",
"DAY",
"WEEK",
"MONTH"
]
}
}
Will this improve the time efficiency only if i couple it with datetrunc functions.Or will the index on the "eventtime" column help even if the query has a range filter?Xiang Fu
dateTimeConvert function for STRING to TIMESTAMP convert?Xiang Fu
dataTrunc functionXiang Fu
Sharon
12/05/2024, 6:14 AMWHERE
"eventtime" BETWEEN CAST('2024-06-01 00:00' AS TIMESTAMP) AND CAST('2024-06-30 23:59' AS TIMESTAMP)Sharon
12/05/2024, 6:15 AMSharon
12/05/2024, 6:16 AMXiang Fu
Xiang Fu
Xiang Fu
Sharon
12/05/2024, 6:48 AMXiang Fu
Xiang Fu
Sharon
12/05/2024, 9:40 AMXiang Fu
Xiang Fu
Xiang Fu
Xiang Fu
Sharon
12/11/2024, 10:43 AM