mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: slow user pages in admin. add an index for trust level 3 calculations, and memoize query results
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddPostsIndexIncludingDeleted < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :posts, [:user_id, :created_at]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user