gitlab-org--gitlab-foss/spec/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
..
ci Correct spec description typo 2015-10-15 21:30:47 -04:00
concerns Only accept open issues and merge requests 2015-10-16 09:59:32 +02:00
hooks Fix rubocop warnings in spec/models 2015-10-03 01:48:54 -05:00
members Rename abilities to correspond contoller/model action names 2015-06-26 15:55:56 +02:00
project_services Improve invalidation of stored service password if the endpoint URL is changed 2015-10-15 12:07:59 +02:00
abuse_report_spec.rb Streamline the "Report button" 2015-09-29 21:47:01 +02:00
application_setting_spec.rb Re-annotate models 2015-09-06 07:48:48 -07:00
broadcast_message_spec.rb Fix rubocop warnings in spec/models 2015-10-03 01:48:54 -05:00
build_spec.rb Merge branch 'show_pending_warning' into 'master' 2015-10-14 18:57:05 +00:00
commit_range_spec.rb Merge branch 'master' into rubocop-for-tests 2015-06-23 10:44:03 +02:00
commit_spec.rb Fix mentionable specs 2015-10-12 16:23:15 +02:00
commit_status_spec.rb Fix some changes 2015-10-12 16:41:36 +02:00
deploy_key_spec.rb Re-annotate models 2015-05-03 13:38:27 -07:00
deploy_keys_project_spec.rb Fix Style/Blocks cop violations 2015-06-22 16:00:54 -04:00
event_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
external_issue_spec.rb Add `to_reference` for models that support references 2015-05-26 15:48:30 -04:00
external_wiki_service_spec.rb Change `foo.should` syntax to `expect(foo).to` in specs 2015-06-13 18:37:30 -04:00
forked_project_link_spec.rb Fix Style/TrailingBlankLines cop violations 2015-06-22 14:38:33 -04:00
generic_commit_status_spec.rb Implement Commit Status API 2015-10-12 11:53:49 +02:00
group_spec.rb Add `to_reference` for models that support references 2015-05-26 15:48:30 -04:00
issue_spec.rb Only accept open issues and merge requests 2015-10-16 09:59:32 +02:00
key_spec.rb Only publish ssh key-type and key 2015-08-04 14:33:18 +02:00
label_link_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
label_spec.rb Support only double quotes for multi-word label references 2015-05-26 15:49:20 -04:00
member_spec.rb Re-annotate models 2015-05-03 13:38:27 -07:00
merge_request_spec.rb merge_request: add work_in_progress to MR hooks 2015-10-08 16:37:04 -04:00
milestone_spec.rb Improve performance of sorting milestone issues 2015-10-19 11:37:14 +02:00
namespace_spec.rb Update mock and stub syntax for specs 2015-06-22 12:13:46 +02:00
note_spec.rb Fix mentionable specs 2015-10-12 16:23:15 +02:00
project_security_spec.rb Fix Style/TrailingBlankLines cop violations 2015-06-22 14:38:33 -04:00
project_snippet_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
project_spec.rb Revamp trending projects query 2015-10-06 17:26:32 +02:00
project_team_spec.rb Wrong access level badge on MR comments 2015-10-02 15:11:17 +03:00
project_wiki_spec.rb Fix rubocop warnings in spec/models 2015-10-03 01:48:54 -05:00
protected_branch_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
repository_spec.rb Merge branch 'master' into remove-satellites 2015-08-17 11:41:53 +02:00
service_spec.rb Improve invalidation of stored service password if the endpoint URL is changed 2015-10-15 12:07:59 +02:00
snippet_spec.rb Make snippet filename optional. 2015-06-20 01:06:57 +02:00
user_spec.rb Merge branch 'rs-throttle-reset' into 'master' 2015-10-02 14:37:07 +00:00
wiki_page_spec.rb Fix rubocop warnings in spec/models 2015-10-03 01:48:54 -05:00