11 Aug, 2015
1 commit
-
All scraps and action trackers from profile were loaded at once as will_paginate can't change SQL when find_by_sql is used. Also, eager load activities to make it O(3) instead of O(n). This increases performance by ~30% on profiles with lots of scraps/action trackers.