Skip to content

Commit

Permalink
Merge pull request #473 from metabrainz/add-text-index
Browse files Browse the repository at this point in the history
Add index on "user".id::text
  • Loading branch information
alastair authored Oct 4, 2022
2 parents bb543a4 + bf7145c commit 89d9351
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin/schema_changes/23.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BEGIN;
CREATE INDEX ix_user_id ON "user" USING btree ((id::text));
COMMIT;
1 change: 1 addition & 0 deletions admin/sql/create_indexes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ BEGIN;
CREATE INDEX ix_oauth_grant_code ON oauth_grant USING btree (code);
CREATE INDEX ix_review_entity_id ON review USING btree (entity_id);
CREATE INDEX ix_revision_review_id ON revision USING btree (review_id);
CREATE INDEX ix_user_id ON "user" USING btree ((id::text));

COMMIT;

0 comments on commit 89d9351

Please sign in to comment.