[openSUSE/open-build-service] 4d7b39: Fix N+1 queries fetching all projects
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 4d7b39e4d31628ea779ab72422073e581ef9a960 https://github.com/openSUSE/open-build-service/commit/4d7b39e4d31628ea779ab7... Author: Eduardo Navarro <enavarro@suse.com> Date: 2024-05-14 (Tue, 14 May 2024) Changed paths: M src/api/app/datatables/project_datatable.rb M src/api/app/models/project.rb Log Message: ----------- Fix N+1 queries fetching all projects Craft with a scope the join condition of projects and values. This prevent N+1 queries. Also, remove the loop to render more than one value for the OBS:QualityCategory attribute. This attribute can only keep one value. Commit: 875f14bdcca17bbda959812c015404e51f03e3f2 https://github.com/openSUSE/open-build-service/commit/875f14bdcca17bbda95981... Author: Eduardo J <enavarro@suse.com> Date: 2024-05-15 (Wed, 15 May 2024) Changed paths: M src/api/app/datatables/project_datatable.rb M src/api/app/models/project.rb Log Message: ----------- Merge pull request #16109 from eduardoj/fix/all_projects_n_plus_1_queries Fix N+1 queries fetching all projects Compare: https://github.com/openSUSE/open-build-service/compare/983c970f8acc...875f14... To unsubscribe from these emails, change your notification settings at https://github.com/openSUSE/open-build-service/settings/notifications
participants (1)
-
Eduardo J.