mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
optimise view count calculation query
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
class AddUserIdParentTypeIndexOnViews < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :views, [:user_id,:parent_type,:parent_id]
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user