gitlab-org--gitlab-foss/spec
Toon Claes 6a915d6f2d Limit `update_tracked_fields` to write to database once/hour
Every time a user logs in or out, the Trackable attributes are written to the
database. This is causing a lot of load on the database, for data that isn't
really critical.

So to avoid the database being hammered, add a Gitlab::ExclusiveLease before
writing trackable attributes to the database. This lease expires after an hour,
so only when the attributes were written more than an hour ago, they can be
written again. Otherwise they are ignored.
2017-05-08 08:48:38 +02:00
..
bin
config
controllers Add Pipeline Schedules that supersedes experimental Trigger Schedule 2017-05-07 22:35:56 +00:00
db/production
factories Add Pipeline Schedules that supersedes experimental Trigger Schedule 2017-05-07 22:35:56 +00:00
features Add Pipeline Schedules that supersedes experimental Trigger Schedule 2017-05-07 22:35:56 +00:00
finders Add Pipeline Schedules that supersedes experimental Trigger Schedule 2017-05-07 22:35:56 +00:00
fixtures Real time pipeline show action 2017-05-06 16:45:46 +00:00
helpers Merge branch 'mia_backort' into 'master' 2017-05-05 19:17:28 +00:00
initializers
javascripts Add Pipeline Schedules that supersedes experimental Trigger Schedule 2017-05-07 22:35:56 +00:00
lib Merge branch 'fix/support-gitaly-commit-diff-flags' into 'master' 2017-05-07 22:59:30 +00:00
mailers Backport of multiple_assignees_feature [ci skip] 2017-05-04 17:11:53 +03:00
migrations Rename forbidden paths in a single migration 2017-05-01 11:14:24 +02:00
models Limit `update_tracked_fields` to write to database once/hour 2017-05-08 08:48:38 +02:00
policies Merge branch 'feature/gb/manual-actions-protected-branches-permissions' into 'master' 2017-05-06 17:17:02 +00:00
presenters
requests Merge branch 'feature/gb/manual-actions-protected-branches-permissions' into 'master' 2017-05-06 17:17:02 +00:00
routing Redirect from redirect routes to canonical routes 2017-05-05 12:11:57 -07:00
rubocop/cop Add AddColumnWithDefaultToLargeTable cop 2017-04-28 15:55:55 -05:00
serializers Merge branch 'feature/gb/manual-actions-protected-branches-permissions' into 'master' 2017-05-06 17:17:02 +00:00
services Merge branch 'feature/gb/manual-actions-protected-branches-permissions' into 'master' 2017-05-06 17:17:02 +00:00
support Merge branch '29925-gitlab-shell-hooks-can-no-longer-send-absolute-paths-to-gitlab-ce' into 'master' 2017-05-05 22:08:29 +00:00
tasks Compile gitlab-shell go executables 2017-05-04 11:21:51 +02:00
unicorn Remove config lines in one place 2017-04-28 13:51:19 +02:00
uploaders Support uploaders for personal snippets comments 2017-05-02 15:22:24 +02:00
validators Add a better error message when a certain path is missing 2017-05-02 11:48:54 +02:00
views Make test that actually displays pipeline graph 2017-05-07 14:09:21 +02:00
workers Add Pipeline Schedules that supersedes experimental Trigger Schedule 2017-05-07 22:35:56 +00:00
factories_spec.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Resolve "rspec_profiling is enabled for MySQL" 2017-04-28 18:05:39 +00:00