Skip to content

Commit

Permalink
add index
Browse files Browse the repository at this point in the history
  • Loading branch information
joschne committed Jun 19, 2024
1 parent 41ebf4e commit db8a96f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
DROP INDEX IF EXISTS pgwar.entity_preview_fk_class_idx;
DROP INDEX IF EXISTS pgwar.entity_preview_entity_label_idx;
6 changes: 5 additions & 1 deletion database/migrations/sqls/20240618112815-pgwar-indexes-up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
(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);

0 comments on commit db8a96f

Please sign in to comment.