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
deploy_keys_project_spec.rb
event_spec.rb
external_issue_spec.rb
external_wiki_service_spec.rb
forked_project_link_spec.rb
generic_commit_status_spec.rb Implement Commit Status API 2015-10-12 11:53:49 +02:00
group_spec.rb
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
label_spec.rb
member_spec.rb
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
note_spec.rb Fix mentionable specs 2015-10-12 16:23:15 +02:00
project_security_spec.rb
project_snippet_spec.rb
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
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
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