mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 12:54:51 +08:00
PERF: Add index to speed up DirectoryItem.refresh_period!
query.
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
class AddIndexToTopicViewItems < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :topic_views, [:user_id, :viewed_at]
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user