Files
gitlabhq/spec/models
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-11 15:25:23 -05:00
2016-03-10 14:48:29 -05:00
2015-12-09 10:50:51 +01:00
2016-02-19 19:31:57 +01:00
2015-12-09 10:50:51 +01:00
2016-01-06 13:09:55 +00:00
2015-12-09 10:50:51 +01:00
2015-12-09 10:50:51 +01:00
2016-01-06 13:09:55 +00:00
2016-01-06 13:09:55 +00:00
2016-01-12 12:29:10 -02:00
2015-12-18 14:19:48 -06:00
2015-12-15 00:53:52 -02:00
2015-12-09 10:50:51 +01:00
2015-12-09 10:50:51 +01:00
2015-12-09 10:50:51 +01:00
2015-11-13 19:22:46 +01:00
2016-01-06 13:09:55 +00:00
2016-03-11 15:25:23 -05:00