gitlab-org--gitlab-foss/app/controllers/dashboard
Yorick Peterse aac1de46c9
Use a specialized class for querying events
This changes various controllers to use the new EventCollection class
for retrieving events. This class uses a JOIN LATERAL query on
PostgreSQL to retrieve queries in a more efficient way, while falling
back to a simpler / less efficient query for MySQL.

The EventCollection class also includes a limit on the number of events
to display to prevent malicious users from cycling through all events,
as doing so could put a lot of pressure on the database.

JOIN LATERAL is only supported on PostgreSQL starting with version 9.3.0
and as such this optimisation is only used when using PostgreSQL 9.3 or
newer.
2017-08-10 17:45:49 +02:00
..
application_controller.rb
groups_controller.rb Use group and project finders instead of direct ActiveRecord relations 2017-06-07 20:22:34 -05:00
labels_controller.rb Fix dashboard labels dropdown 2017-07-07 14:35:16 +01:00
milestones_controller.rb Fixed dashboard milestone tabs not loading 2017-06-09 09:57:42 +01:00
projects_controller.rb Use a specialized class for querying events 2017-08-10 17:45:49 +02:00
snippets_controller.rb Merge branch 'snippets-finder-visibility' into 'security' 2017-05-10 16:48:18 +02:00
todos_controller.rb Avoid plucking Todo ids and use sub-queries instead 2017-08-03 16:31:05 +02:00