1
0

optimize stats using "materialized view"

This commit is contained in:
2025-07-07 09:16:52 +02:00
parent 1e291882a6
commit be3023f55d
8 changed files with 31 additions and 58 deletions

View File

@@ -0,0 +1,2 @@
CREATE INDEX if not exists idx_stats_day ON stats(insertedAt / (3600*24));