aada01030c
The Sortable concern has a default scope that adds ORDER BY to all queries. EXPLAIN ANALYZE shows that this additional ORDER BY statement causes the SQL optimizer to use the wrong index, which leads to a load time of 2.9 s vs 0.073 ms just for the SELECT call. The minimal change here is to re-implement find_by using where and reorder to remove the ORDER BY clause in IssuesController#index. Closes #23075 |
||
---|---|---|
.. | ||
boards | ||
application_controller.rb | ||
artifacts_controller.rb | ||
avatars_controller.rb | ||
badges_controller.rb | ||
blame_controller.rb | ||
blob_controller.rb | ||
board_lists_controller.rb | ||
boards_controller.rb | ||
branches_controller.rb | ||
builds_controller.rb | ||
commit_controller.rb | ||
commits_controller.rb | ||
compare_controller.rb | ||
container_registry_controller.rb | ||
cycle_analytics_controller.rb | ||
deploy_keys_controller.rb | ||
discussions_controller.rb | ||
environments_controller.rb | ||
find_file_controller.rb | ||
forks_controller.rb | ||
git_http_client_controller.rb | ||
git_http_controller.rb | ||
graphs_controller.rb | ||
group_links_controller.rb | ||
hooks_controller.rb | ||
imports_controller.rb | ||
issues_controller.rb | ||
labels_controller.rb | ||
lfs_api_controller.rb | ||
lfs_storage_controller.rb | ||
merge_requests_controller.rb | ||
milestones_controller.rb | ||
network_controller.rb | ||
notes_controller.rb | ||
pipelines_controller.rb | ||
pipelines_settings_controller.rb | ||
project_members_controller.rb | ||
protected_branches_controller.rb | ||
raw_controller.rb | ||
refs_controller.rb | ||
releases_controller.rb | ||
repositories_controller.rb | ||
runner_projects_controller.rb | ||
runners_controller.rb | ||
services_controller.rb | ||
snippets_controller.rb | ||
tags_controller.rb | ||
templates_controller.rb | ||
todos_controller.rb | ||
tree_controller.rb | ||
triggers_controller.rb | ||
uploads_controller.rb | ||
variables_controller.rb | ||
wikis_controller.rb |