diff --git a/src/main/resources/db/migration/V2_1__add_clinic_activity_logs_index.sql b/src/main/resources/db/migration/V2_1__add_clinic_activity_logs_index.sql new file mode 100644 index 00000000000..78b5cb06b69 --- /dev/null +++ b/src/main/resources/db/migration/V2_1__add_clinic_activity_logs_index.sql @@ -0,0 +1,2 @@ +-- Add index to improve query performance on numeric_value column +CREATE INDEX IF NOT EXISTS idx_clinic_activity_logs_numeric_value ON clinic_activity_logs(numeric_value); \ No newline at end of file diff --git a/src/main/resources/db/postgres/migrations/V2__add_numeric_value_index.sql b/src/main/resources/db/postgres/migrations/V2__add_numeric_value_index.sql new file mode 100644 index 00000000000..a98c4bcee92 --- /dev/null +++ b/src/main/resources/db/postgres/migrations/V2__add_numeric_value_index.sql @@ -0,0 +1,2 @@ +-- Add index on numeric_value column to improve query performance +CREATE INDEX IF NOT EXISTS idx_clinic_activity_logs_numeric_value ON clinic_activity_logs(numeric_value); \ No newline at end of file