diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-03-07 12:56:46 +0100 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-03-11 15:26:32 -0500 |
commit | 4f3fa519c627b7caf45273226ae438181dfbc392 (patch) | |
tree | 9cf5ecd427d262fab71d7f4bc821e61e2277dace /docker | |
parent | c2df121f8eeaf8e0fccab43f5b181f70f3725e58 (diff) | |
download | gitlab-ce-4f3fa519c627b7caf45273226ae438181dfbc392.tar.gz |
Use a UNION in MergeRequest.in_projects
The OR condition for source_project_id/target_project_id leads to a
query plan that performs rather poorly on PostgreSQL due to the use of
sub-queries. Because Rails offers no easy alternative for this
particular problem we're forced to using a UNION for both conditions.
The resulting query performs much faster than just using an OR.
Diffstat (limited to 'docker')
0 files changed, 0 insertions, 0 deletions