[obs-commits] [openSUSE/open-build-service] eedeca: Improve User model efficiency - select
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: eedecac3222bfe366c5f772853debd2507479177 https://github.com/openSUSE/open-build-service/commit/eedecac3222bfe366c5f77... Author: Ana María Martínez Gómez <ammartinez@suse.de> Date: 2018-12-03 (Mon, 03 Dec 2018) Changed paths: M src/api/app/models/user.rb Log Message: ----------- Improve User model efficiency - select Use `select` instead of `pluck` as it generate a subquery with a select instead of adding all the ids to que query. Potentially there could be a lot of ids, which makes this query inefficient. Commit: b306d22c4f6e970344195ab8d2eeeb08763142e3 https://github.com/openSUSE/open-build-service/commit/b306d22c4f6e970344195a... Author: Ana María Martínez Gómez <ammartinez@suse.de> Date: 2018-12-04 (Tue, 04 Dec 2018) Changed paths: M src/api/app/models/user.rb Log Message: ----------- Merge pull request #6433 from Ana06/select Improve User model efficiency - select Compare: https://github.com/openSUSE/open-build-service/compare/989c5305c611...b306d2... **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)
-
Ana María Martínez Gómez