-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the performance of
get_region_links
(#3120)
* Improve region link loading performance Time for running the `get_urls` query (without the prefetch): - Augsburg: 1829ms → 190ms (90% reduction) - München: 2037ms → 424ms (80% reduction) I achieved another 30-40% reduction by adding an index to `Link`, though this will have to be a pr for django-linkcheck * Only prefetch region links if required Prefetching the region links normally takes more than the actual query, so not doing it if possible saves a lot of time
- Loading branch information
1 parent
c582537
commit b67f358
Showing
3 changed files
with
30 additions
and
16 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
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