Skip to content

Commit 7952919

Browse files
authored
Create database index to speed up trustpub_configs_github table queries (#12013)
1 parent a1e8622 commit 7952919

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP INDEX idx_trustpub_configs_github_repo;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
run_in_transaction = false
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_trustpub_configs_github_repo
2+
ON trustpub_configs_github (LOWER(repository_owner), LOWER(repository_name));

0 commit comments

Comments
 (0)