Skip to content

Commit

Permalink
Drop unused index from issuedNames table (#5290)
Browse files Browse the repository at this point in the history
Drop the reversedName_renewal_notBefore_Idx from the issuedNames table.
This index was added to facilitate rate limit queries, but we now use
the certificatesPerName table for rate limits instead.

Keep the reversedName_notBefore_Idx in place, as it is still useful for
gathering stats on how many hostnames have active certificates.

Fixes #3180
  • Loading branch information
aarongable committed Feb 18, 2021
1 parent e2e7dad commit 23f5724
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sa/_db-next/migrations/20210216114200_IssuedNamesDropIndex.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied

ALTER TABLE issuedNames DROP INDEX `reversedName_renewal_notBefore_Idx`;

-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back

ALTER TABLE issuedNames ADD INDEX `reversedName_renewal_notBefore_Idx` (`reversedName`,`renewal`,`notBefore`);

0 comments on commit 23f5724

Please sign in to comment.