Skip to content

Commit 9365990

Browse files
authored
Add an index on serials to the revokedCertificates table (#8427)
Give the `revokedCertificates` table a non-unique index on the `serial` column. This exactly matches the existing index on the `certificateStatus` table. We did not include this index initially because we were optimizing this table for the crl-updater's crawl-by-shard-and-expiration behavior, but this index is necessary to look up if a certificate has already been revoked when computing ARI windows and when processing revocation requests. Part of #8322
1 parent 4d19fec commit 9365990

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- +migrate Up
2+
-- SQL in section 'Up' is executed when this migration is applied
3+
4+
ALTER TABLE `revokedCertificates` ADD KEY `serial` (`serial`);
5+
6+
-- +migrate Down
7+
-- SQL section 'Down' is executed when this migration is rolled back
8+
9+
ALTER TABLE `revokedCertificates` DROP KEY `serial`;

0 commit comments

Comments
 (0)