Files
gitlabhq/spec
Yorick PeterseandRobert Speicher 4f3fa519c6 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.
2016-03-11 15:26:32 -05:00
..
2016-03-10 14:48:29 -05:00
2015-11-19 10:43:45 +01:00
2016-03-10 14:48:29 -05:00
2015-05-28 18:22:32 -04:00