From db8a96f7594382ecb0a3694c40952ba5f17a2c87 Mon Sep 17 00:00:00 2001 From: joschne Date: Wed, 19 Jun 2024 14:53:21 +0200 Subject: [PATCH] add index --- .../migrations/sqls/20240618112815-pgwar-indexes-down.sql | 3 ++- .../migrations/sqls/20240618112815-pgwar-indexes-up.sql | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/database/migrations/sqls/20240618112815-pgwar-indexes-down.sql b/database/migrations/sqls/20240618112815-pgwar-indexes-down.sql index da33c0f35..82e346beb 100644 --- a/database/migrations/sqls/20240618112815-pgwar-indexes-down.sql +++ b/database/migrations/sqls/20240618112815-pgwar-indexes-down.sql @@ -5,4 +5,5 @@ DROP INDEX IF EXISTS pgwar.community_statements_fk_object_info_idx; DROP INDEX IF EXISTS pgwar.project_statements_outgoing_order_idx; DROP INDEX IF EXISTS pgwar.community_statements_fk_property_idx; DROP INDEX IF EXISTS pgwar.project_statements_fk_property_idx; -DROP INDEX IF EXISTS pgwar.entity_preview_fk_class_idx; \ No newline at end of file +DROP INDEX IF EXISTS pgwar.entity_preview_fk_class_idx; +DROP INDEX IF EXISTS pgwar.entity_preview_entity_label_idx; \ No newline at end of file diff --git a/database/migrations/sqls/20240618112815-pgwar-indexes-up.sql b/database/migrations/sqls/20240618112815-pgwar-indexes-up.sql index ce767bd28..f57c5ac12 100644 --- a/database/migrations/sqls/20240618112815-pgwar-indexes-up.sql +++ b/database/migrations/sqls/20240618112815-pgwar-indexes-up.sql @@ -28,4 +28,8 @@ CREATE INDEX IF NOT EXISTS project_statements_fk_property_idx CREATE INDEX IF NOT EXISTS entity_preview_fk_class_idx ON pgwar.entity_preview USING btree - (fk_class ASC NULLS LAST); \ No newline at end of file + (fk_class ASC NULLS LAST); + +CREATE INDEX IF NOT EXISTS entity_preview_entity_label_idx + ON pgwar.entity_preview USING btree + (entity_label ASC NULLS LAST); \ No newline at end of file