gitlab-org--gitlab-foss/app/services/projects
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
..
import_export squashed - added avatar saver/restorer and specs 2016-07-19 13:06:06 +02:00
autocomplete_service.rb Fix specs and implement fixes based on failing specs 2016-08-17 17:54:24 -05:00
create_service.rb Project tools visibility level 2016-09-01 11:47:59 -03:00
destroy_service.rb Before deleting project if forked unlink fork 2016-09-13 14:40:05 +02:00
download_service.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
enable_deploy_key_service.rb Namespace EnableDeployKeyService under Projects 2016-08-08 20:59:51 +02:00
fork_service.rb Project tools visibility level 2016-09-01 11:47:59 -03:00
housekeeping_service.rb Move pushes_since_gc to Redis 2016-09-13 22:27:51 +02:00
import_service.rb fixes a few issues to do with import_url not being saved correctly for imports. This should prevent the import_data to be created when it should not and output an error properly validating before creating it. 2016-07-12 16:21:28 +02:00
participants_service.rb Refactor slash command definition 2016-08-12 20:17:18 -05:00
transfer_service.rb Refactor repository paths handling to allow multiple git mount points 2016-06-29 22:30:31 -04:00
unlink_fork_service.rb Fix incorrect variable name 2016-04-04 14:41:01 +00:00
update_service.rb Fix Project#to_param to keep invalid project suitable for use in URLs 2016-07-27 13:52:45 -03:00
upload_service.rb DRY up upload and download services 2016-01-08 17:38:53 +01:00