-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #37995 - High memory rendering Arf Report index page (#584)
* Fixes #37995 - High memory rendering Arf Report index page Avoid using includes() with nested associations and "order by" together. Otherwise, includes() will use join tables instead and Rails somehow create many objects and high memory consumption. * Update app/controllers/arf_reports_controller.rb --------- Co-authored-by: Adam Růžička <[email protected]>
- Loading branch information
1 parent
6961bfd
commit 60072b8
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,4 +56,4 @@ | |
</div> | ||
</div> | ||
</div> | ||
<%= will_paginate_with_info @arf_reports %> | ||
<%= will_paginate_with_info @arf_reports_pg %> |