gitlab-org--gitlab-foss/spec/benchmarks/models
Yorick Peterse 4ff75e3179 Improve performance of sorting milestone issues
This cuts down the time it takes to sort issues of a milestone by about
10x. In the previous setup the code would run a SQL query for every
issue that had to be sorted. The new setup instead runs a single SQL
query to update all the given issues at once.

The attached benchmark used to run at around 60 iterations per second,
using the new setup this hovers around 600 iterations per second. Timing
wise a request to update a milestone with 40-something issues would take
about 760 ms, in the new setup this only takes about 130 ms.

Fixes #3066
2015-10-19 11:37:14 +02:00
..
milestone_spec.rb Improve performance of sorting milestone issues 2015-10-19 11:37:14 +02:00
project_spec.rb
project_team_spec.rb Improve ProjectTeam#max_member_access performance 2015-10-15 12:05:01 +02:00
user_spec.rb