From 8b984f9f0d163a424add464900f7d8a88b847310 Mon Sep 17 00:00:00 2001 From: ojwanganto Date: Thu, 28 Nov 2024 12:02:20 +0300 Subject: [PATCH 1/2] Add indexes on patient appointment start_date_time and status columns to improve query performance --- api/src/main/resources/liquibase.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/src/main/resources/liquibase.xml b/api/src/main/resources/liquibase.xml index 690d1db6..42d74872 100644 --- a/api/src/main/resources/liquibase.xml +++ b/api/src/main/resources/liquibase.xml @@ -749,4 +749,14 @@ update patient_appointment set date_appointment_scheduled = date_created where date_appointment_scheduled is null; + + + + + + + + + + From cfc35f13326642592408595638f9d059fdaa7fc4 Mon Sep 17 00:00:00 2001 From: ojwanganto Date: Fri, 29 Nov 2024 10:37:51 +0300 Subject: [PATCH 2/2] Drop index on patient_appointment status column --- api/src/main/resources/liquibase.xml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/api/src/main/resources/liquibase.xml b/api/src/main/resources/liquibase.xml index 42d74872..c3b87281 100644 --- a/api/src/main/resources/liquibase.xml +++ b/api/src/main/resources/liquibase.xml @@ -749,14 +749,10 @@ update patient_appointment set date_appointment_scheduled = date_created where date_appointment_scheduled is null; - + + add index on patient_appointment start_date_time column - - - - -