Drop unused index from issuedNames table (#5290)

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
This commit is contained in:
Aaron Gable 2021-02-18 08:55:39 -08:00 committed by GitHub
parent e2e7dad034
commit 23f5724233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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`);