gitlab-org--gitlab-foss/app/controllers/projects
Dmitriy Zaporozhets 227728712e Merge branch 'note-background-job' into 'master'
Background process note logic for #3948

Quick and dirty way to get *most* of the note processing out of band and into the background. Seeing some pretty nice speed bumps. Keep in mind that doing this in process results in slower and slower responses as more notes are added and more participants exist.

```
without background processing
  Completed 200 OK in 627ms (Views: 0.5ms | ActiveRecord: 32.3ms)
  Completed 200 OK in 478ms (Views: 0.8ms | ActiveRecord: 28.3ms)
  Completed 200 OK in 1107ms (Views: 0.6ms | ActiveRecord: 36.6ms)

with background processing
  Completed 200 OK in 108ms (Views: 0.6ms | ActiveRecord: 4.7ms)
  Completed 200 OK in 78ms (Views: 0.5ms | ActiveRecord: 4.5ms)
  Completed 200 OK in 164ms (Views: 0.5ms | ActiveRecord: 8.3ms)
```

As you can see, speeds are consistent when doing the harder work out of process. I'm not sure the number of sql queries we're saving, but based on the logs alone it's a pretty good amount.

@dzaporozhets @yorickpeterse I would love some input on this.

See merge request !2631
2016-01-29 13:51:34 +00:00
..
application_controller.rb Migrate CI::Project to Project 2015-12-11 18:02:09 +01:00
artifacts_controller.rb Fix nonexistent method in artifacts controller 2016-01-15 13:48:29 +01:00
avatars_controller.rb Only render 404 page from /public 2015-10-13 20:12:34 +03:00
blame_controller.rb Move blame group logic to dedicated class 2016-01-28 14:49:21 +01:00
blob_controller.rb Make sure non-highlighted diffs are still escaped 2016-01-22 01:47:17 +01:00
branches_controller.rb Merge branch 'master' into diverging-branch-graphs 2015-12-03 21:53:06 -06:00
builds_controller.rb Give reporters the ability to download artifacts. 2016-01-15 12:01:19 +01:00
commit_controller.rb Merge branch 'master' into issue_3945 2016-01-20 14:53:41 +01:00
commits_controller.rb Add support for ref and path to commits filtering 2016-01-07 15:16:11 +01:00
compare_controller.rb Correctly determine MR diff base when MR has merge conflicts 2016-01-27 17:23:59 +01:00
deploy_keys_controller.rb Redirect to a default path if HTTP_REFERER is not set 2015-10-20 07:45:48 -07:00
find_file_controller.rb Merge branch 'master' of github.com:gitlabhq/gitlabhq 2016-01-07 12:56:18 +01:00
forks_controller.rb Some CSS and sorting fixes. 2016-01-20 00:17:21 -05:00
graphs_controller.rb Migrate CI::Project to Project 2015-12-11 18:02:09 +01:00
hooks_controller.rb Migrate CI::Services and CI::WebHooks to Services and WebHooks 2015-12-10 16:04:08 +01:00
imports_controller.rb Fixi import redirect loop 2016-01-25 21:00:23 -02:00
issues_controller.rb Fix autocomplete for new issues/MRs/snippets 2016-01-15 11:29:53 +01:00
labels_controller.rb Fix 403 Access Denied error messages when accessing Labels section in a project that has MRs disabled but issues enabled 2015-06-18 03:15:05 -07:00
merge_requests_controller.rb Save and use actual diff base commit for MR diff highlighting 2016-01-20 18:44:27 +01:00
milestones_controller.rb Improve performance of sorting milestone issues 2015-10-19 11:37:14 +02:00
network_controller.rb Fix network graph when branch name has single quotes 2015-07-29 23:29:47 -07:00
notes_controller.rb [WIP] Background process note logic for #3948 2016-01-28 13:04:42 -05:00
project_members_controller.rb Fix only 20 group members showing on project member page 2015-12-09 01:43:57 +01:00
protected_branches_controller.rb Fixed Rubocop offenses 2015-12-15 00:53:52 -02:00
raw_controller.rb Add specs for showing lfs object in UI. 2015-12-07 15:03:50 +01:00
refs_controller.rb Merge branch 'master' of github.com:gitlabhq/gitlabhq 2016-01-07 12:56:18 +01:00
releases_controller.rb Refactor release code a bit 2015-11-09 15:30:50 +01:00
repositories_controller.rb Let gitlab-git-http-server handle archive downloads 2015-10-08 17:12:00 +02:00
runner_projects_controller.rb Remove ci_ prefix from all ci related things 2015-12-11 18:02:09 +01:00
runners_controller.rb Remove ci_ prefix from all ci related things 2015-12-11 18:02:09 +01:00
services_controller.rb Backport JIRA service 2015-12-18 14:19:48 -06:00
snippets_controller.rb Fix autocomplete for new issues/MRs/snippets 2016-01-15 11:29:53 +01:00
tags_controller.rb Add authorization to new branch/tag pages. 2015-12-03 18:53:17 +01:00
tree_controller.rb Fix specs and behavior for LFS files 2015-12-18 16:14:12 +01:00
triggers_controller.rb Remove ci_ prefix from all ci related things 2015-12-11 18:02:09 +01:00
uploads_controller.rb Only render 404 page from /public 2015-10-13 20:12:34 +03:00
variables_controller.rb Remove ci_ prefix from all ci related things 2015-12-11 18:02:09 +01:00
wikis_controller.rb Fix rubocop warnings in app 2015-10-03 00:56:37 -05:00