gitlab-org--gitlab-foss/app
Robert Speicher 4f6ad25b0d Merge branch 'pushes-since-gc-redis' into 'master'
Move pushes_since_gc to Redis

## What does this MR do?

This moves tracking of the pushes since the last Git GC to Redis to reduce DB load.

## Are there points in the code the reviewer needs to double check?

Styling mostly.

## Why was this MR needed?

Updating this column can lead to a lot of writes which in turn puts a lot of load on table vacuuming. For example, in the last hour alone we had 5067 UPDATEs for this column (per InfluxDB):

```
> select count(increment_pushes_since_gc_call_count) from sidekiq_transactions where time > now() - 1h;
name: sidekiq_transactions
--------------------------
time                    count
1473780996567714622     5067
```

## What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/22125

See merge request !6326
2016-09-13 23:35:42 +00:00
..
assets Merge branch '21895-horizontal-scroll-bar-present-in-collapsed-sidebar' into 'master' 2016-09-13 10:51:50 +00:00
controllers Add test checking method closed_without_source_project 2016-09-13 14:40:05 +02:00
finders Use PipelinesFinder in Pipelines API 2016-09-07 15:38:03 +02:00
helpers Improve grammar 2016-09-13 14:40:05 +02:00
mailers remove Ability.abilities 2016-08-30 11:35:06 -07:00
models Merge branch 'pushes-since-gc-redis' into 'master' 2016-09-13 23:35:42 +00:00
policies Project tools visibility level 2016-09-01 11:47:59 -03:00
services Merge branch 'pushes-since-gc-redis' into 'master' 2016-09-13 23:35:42 +00:00
uploaders Remove magic comments from Ruby files (!5456) 2016-07-24 07:08:45 +02:00
validators
views Restore SSH Key title auto-population behavior 2016-09-13 11:49:55 -04:00
workers Optimized event pruning query to avoid two queries. 2016-09-07 12:55:25 -07:00