mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
404 page had horrible perf, it was using "take" instead of limit.
in such cases EVERY row is materialized and only after the limit is applied. So ... imagine what happens on a forum with 2,000,000 topics
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
class ExceptionsController < ApplicationController
|
||||
skip_before_filter :check_xhr
|
||||
skip_before_filter :check_xhr, :preload_json
|
||||
|
||||
def not_found
|
||||
# centralize all rendering of 404 into app controller
|
||||
|
Reference in New Issue
Block a user