Select Git revision
Forked from
GitLab.org / GitLab FOSS
2 commits behind, 5105 commits ahead of the upstream repository.
-
Toon Claes authored
TodoService should not call `.select(&:id)` on todos, because this is bad performance. So instead use sub-queries, which will result in a single SQL query to the database. https://docs.gitlab.com/ee/development/sql.html#plucking-ids
Toon Claes authoredTodoService should not call `.select(&:id)` on todos, because this is bad performance. So instead use sub-queries, which will result in a single SQL query to the database. https://docs.gitlab.com/ee/development/sql.html#plucking-ids
todos_controller.rb 1.91 KiB