forked from letsencrypt/boulder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cert-checker: improve querying (letsencrypt#7088)
The certificates table has no index on expires, so including expires in the query was causing unnecessarily slow queries. Expires was part of the query in order to support the "UnexpiredOnly" feature. This feature isn't really necessary; if we tell cert-checker to check certain certificates, we want to know about problems even if the certificates are expired. Deprecate the feature and always include all certificates in the time range. Remove "expires" from the queries. This allows simplifying the query structure a bit and inlining query arguments in each site where they are used. Update the error message returned when no rows are returned for the MIN(id) query. The precursor to UnexpiredOnly was introduced in letsencrypt#1644, but I can't find any reference to a requirement for the flag. Fixes letsencrypt#7085
- Loading branch information
Showing
2 changed files
with
123 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters