mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 17:52:45 +08:00
PERF: Add index to speed up DirectoryItem.refresh_period!
query.
This commit is contained in:
parent
89f056203e
commit
66a0a89591
@ -0,0 +1,5 @@
|
||||
class AddIndexToTopicViewItems < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :topic_views, [:user_id, :viewed_at]
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user