From 03ba8400ffe68104acfee8d60f6be848855f4f70 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 2 Jul 2026 13:41:12 +0000 Subject: [PATCH] Build the new indexes CONCURRENTLY (matches 0141) The DB is under load; a plain CREATE INDEX blocks writes for the duration of each build. Co-Authored-By: Claude Fable 5 --- src/app/db/migrations/0257_low_songbird.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/db/migrations/0257_low_songbird.sql b/src/app/db/migrations/0257_low_songbird.sql index 229820c4..1647da23 100644 --- a/src/app/db/migrations/0257_low_songbird.sql +++ b/src/app/db/migrations/0257_low_songbird.sql @@ -1,4 +1,4 @@ -CREATE INDEX "ix_epc_building_part_epc_property" ON "epc_building_part" USING btree ("epc_property_id");--> statement-breakpoint -CREATE INDEX "ix_epc_energy_element_epc_property" ON "epc_energy_element" USING btree ("epc_property_id");--> statement-breakpoint -CREATE INDEX "ix_epc_floor_dimension_building_part" ON "epc_floor_dimension" USING btree ("epc_building_part_id");--> statement-breakpoint -CREATE INDEX "ix_property_portfolio" ON "property" USING btree ("portfolio_id"); \ No newline at end of file +CREATE INDEX CONCURRENTLY "ix_epc_building_part_epc_property" ON "epc_building_part" USING btree ("epc_property_id");--> statement-breakpoint +CREATE INDEX CONCURRENTLY "ix_epc_energy_element_epc_property" ON "epc_energy_element" USING btree ("epc_property_id");--> statement-breakpoint +CREATE INDEX CONCURRENTLY "ix_epc_floor_dimension_building_part" ON "epc_floor_dimension" USING btree ("epc_building_part_id");--> statement-breakpoint +CREATE INDEX CONCURRENTLY "ix_property_portfolio" ON "property" USING btree ("portfolio_id"); \ No newline at end of file