]> cat aescling's git repositories - mastodon.git/commit
Add counter caches for a large performance increase on API requests
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 30 Mar 2017 02:47:04 +0000 (04:47 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 30 Mar 2017 02:47:04 +0000 (04:47 +0200)
commit35933167c0c84033d062a6cc73213fc4c222e4d3
tree243a02cc98ceba378a8cdad0d32047d0d4c2cae7
parentbb7006bda1fac9b261944a51e497569cfcf2d1be
Add counter caches for a large performance increase on API requests
13 files changed:
app/controllers/api/v1/accounts_controller.rb
app/controllers/api/v1/blocks_controller.rb
app/controllers/api/v1/favourites_controller.rb
app/controllers/api/v1/follow_requests_controller.rb
app/controllers/api/v1/mutes_controller.rb
app/controllers/api/v1/notifications_controller.rb
app/controllers/api/v1/statuses_controller.rb
app/models/favourite.rb
app/models/follow.rb
app/models/status.rb
app/views/api/v1/statuses/_show.rabl
db/migrate/20170330021336_add_counter_caches.rb [new file with mode: 0644]
db/schema.rb