parent
5a0381f832
commit
a21cde4c00
2 changed files with 10 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# 0.7.9.0
|
||||
|
||||
## Refactor
|
||||
* Improve public stream performance and cleanup unused indexes [#7944](https://github.com/diaspora/diaspora/pull/7944)
|
||||
|
||||
## Bug fixes
|
||||
|
||||
|
|
|
|||
9
db/migrate/20181227235201_clean_up_posts_indexes.rb
Normal file
9
db/migrate/20181227235201_clean_up_posts_indexes.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# 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
|
||||
Loading…
Reference in a new issue