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