-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
matcher: cache query results for the same query
There is a possiblity that if the index record is referring to the same package but different repositories and the Query() function isn't adding a matcher constraint for the repository, queries to the DB can end up being identical. This patch makes sure that the same query is only executed once by caching the results and using them for subsequent calls. Signed-off-by: crozzy <joseph.crosland@gmail.com>
- Loading branch information
Showing
1 changed file
with
25 additions
and
6 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