mirror of
https://github.com/discourse/discourse.git
synced 2025-06-18 06:22:40 +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