diff --git a/create_tables.sql b/create_tables.sql index f49845b..bc19f96 100644 --- a/create_tables.sql +++ b/create_tables.sql @@ -75,6 +75,8 @@ CREATE TABLE stats ms_latency_percentiles JSONB NOT NULL, PRIMARY KEY (stat_id) ); +DROP INDEX IF EXISTS stat_time_sort; +CREATE INDEX stat_time_sort ON stats (received_time DESC); CREATE TABLE logs (