mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 23:58:12 -05: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