mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #4500 from tgxworld/performance_on_users_page
PERF: Remove ordering by username.
This commit is contained in:
@@ -44,8 +44,7 @@ class DirectoryItemsController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
result = result.order('users.username')
|
||||
result_count = result.dup.count
|
||||
result_count = result.count
|
||||
result = result.limit(PAGE_SIZE).offset(PAGE_SIZE * page).to_a
|
||||
|
||||
more_params = params.slice(:period, :order, :asc)
|
||||
|
||||
Reference in New Issue
Block a user