-
-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch only the challenges needed in getAuthz. (#3597)
In `getAuthorizations`, we had a single loop to both select the freshest authz and fetch challenges corresponding to authzs. This meant that in some cases, we would fetch challenges only to throw them away. Since each challenge fetch is a DB round trip, this would cause extreme slowness when called for domains that have a large number of authorizations. This change splits that into two loops: One to select the freshest authzs, and another to fetch challenges for those authzs.
- Loading branch information
Showing
2 changed files
with
66 additions
and
8 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