From 288118165cab82e7580958a9ff3c1567a7e6cf42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Sun, 27 Oct 2024 19:14:55 -0700 Subject: [PATCH] Add gortdb.event index on tile_id --- schema/lvmdb/gortdb.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/schema/lvmdb/gortdb.sql b/schema/lvmdb/gortdb.sql index 929a3891..1022ab66 100644 --- a/schema/lvmdb/gortdb.sql +++ b/schema/lvmdb/gortdb.sql @@ -91,6 +91,7 @@ CREATE INDEX ON gortdb.night_log_comment (night_log_pk); CREATE INDEX ON gortdb.night_log_comment (time); CREATE INDEX ON gortdb.night_log_comment (category); +CREATE INDEX event_payload_idx ON gortdb.event (((payload ->> 'tile_id')::int)); ALTER TABLE ONLY gortdb.night_log_comment ADD CONSTRAINT night_log_comment_night_log_pk_fk