Merge branch 'next-minor' into develop
This commit is contained in:
commit
3fe0ef350f
2 changed files with 10 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
# 0.7.9.0
|
# 0.7.9.0
|
||||||
|
|
||||||
## Refactor
|
## Refactor
|
||||||
|
* Improve public stream performance and cleanup unused indexes [#7944](https://github.com/diaspora/diaspora/pull/7944)
|
||||||
|
|
||||||
## Bug fixes
|
## 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