Skip to content

Commit

Permalink
refactor: consolidate postgres indices
Browse files Browse the repository at this point in the history
- migrate to using the new index created in 56a4b42
and clean up old, now-unused index

[https://vmw-jira.broadcom.net/browse/TPCF-26571]
  • Loading branch information
peterhaochen47 committed Nov 6, 2024
1 parent 315d357 commit 274d5ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP INDEX CONCURRENTLY IF EXISTS secret_name_unique;
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ constructor(
" SELECT credential_uuid, max(version_created_at) AS max_version_created_at\n" +
" FROM credential_version\n" +
" GROUP BY credential_uuid) AS credential_uuid_of_max_version_created_at\n" +
" INNER JOIN (SELECT * FROM credential WHERE lower(name) LIKE lower(?)) AS name\n" +
" INNER JOIN (SELECT * FROM credential WHERE name_lowercase LIKE lower(?)) AS name\n" +
" ON credential_uuid_of_max_version_created_at.credential_uuid = name.uuid\n" +
" INNER JOIN credential_version AS latest_credential_version\n" +
" ON latest_credential_version.credential_uuid =\n" +
Expand Down

0 comments on commit 274d5ce

Please sign in to comment.