[obs-commits] [openSUSE/open-build-service] bb827b: Don't waste time with expensive default scopes
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: bb827b68bae2111dacfdfc96a2d69394e91e2995 https://github.com/openSUSE/open-build-service/commit/bb827b68bae2111dacfdfc... Author: Stephan Kulow <coolo@suse.de> Date: 2018-12-02 (Sun, 02 Dec 2018) Changed paths: M src/api/app/controllers/statistics_controller.rb M src/api/lib/statistics_calculations.rb Log Message: ----------- Don't waste time with expensive default scopes I happened to notice that / loads in 4 seconds on IBS and looking, 99% is spent in the '6 last updated packages' box because the default query limits package names to .* and project names to .* and times that are after 1970 So just express the default filters by lack of it instead of creating artiticial ones Fixes #6267 Commit: ccd0d7f6e70a7409fff08b0795b7edee0def7a91 https://github.com/openSUSE/open-build-service/commit/ccd0d7f6e70a7409fff08b... Author: Stephan Kulow <stephan@kulow.org> Date: 2018-12-02 (Sun, 02 Dec 2018) Changed paths: M src/api/app/controllers/statistics_controller.rb M src/api/lib/statistics_calculations.rb Log Message: ----------- Merge pull request #6425 from coolo/avoid_regexp Don't waste time with expensive default scopes Compare: https://github.com/openSUSE/open-build-service/compare/6f0bff5fb3d6...ccd0d7... **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
participants (1)
-
Stephan Kulow