Skip to content

Commit 3cb8a36

Browse files
authored
database: Add index on crate_downloads table (#8242)
1 parent a35bfa9 commit 3cb8a36

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 concurrently crate_downloads_downloads_crate_id_index;
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 crate_downloads_downloads_crate_id_index
2+
on crate_downloads (downloads desc, crate_id desc);

0 commit comments

Comments
 (0)