Commit a21cde4c authored by CSammy's avatar CSammy Committed by Benjamin Neff

Speed up public stream and remove obsolete indexes

closes #7944
parent 5a0381f8
# 0.7.9.0
## Refactor
* Improve public stream performance and cleanup unused indexes [#7944](https://github.com/diaspora/diaspora/pull/7944)
## Bug fixes
......
# frozen_string_literal: true
class CleanUpPostsIndexes < ActiveRecord::Migration[5.1]
def change
remove_index :posts, %i[id type created_at]
remove_index :posts, :tweet_id
add_index :posts, %i[created_at id]
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment