From d86ec39b083a7e642c54811cff62b4d0a4f9ce6a Mon Sep 17 00:00:00 2001 From: litoral05 Date: Fri, 22 May 2026 17:38:47 +0100 Subject: [PATCH] added historian indexes --- src/main/resources/db/migration/V5__historian_indexes.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/main/resources/db/migration/V5__historian_indexes.sql diff --git a/src/main/resources/db/migration/V5__historian_indexes.sql b/src/main/resources/db/migration/V5__historian_indexes.sql new file mode 100644 index 0000000..91bd204 --- /dev/null +++ b/src/main/resources/db/migration/V5__historian_indexes.sql @@ -0,0 +1,5 @@ +CREATE INDEX IF NOT EXISTS idx_historian_key_time +ON historian_sample(key_name, sampled_at); + +CREATE INDEX IF NOT EXISTS idx_historian_sampled_at +ON historian_sample(sampled_at); \ No newline at end of file