AFAIK Polo relies on ActiveSupport::Notifications.subscribed to traverse the ActiveRecord tree. This works fine when associated data is small however in production scenario, we have experienced huge memory consumption as collect_sql stores everything in memory. I was wondering if others have similar issues and how they solved this? Also, are there plans to perhaps implement a streaming style methodology (e.g. probably using yield) in future?
AFAIK Polo relies on
ActiveSupport::Notifications.subscribed
to traverse the ActiveRecord tree. This works fine when associated data is small however in production scenario, we have experienced huge memory consumption as collect_sql stores everything in memory. I was wondering if others have similar issues and how they solved this? Also, are there plans to perhaps implement a streaming style methodology (e.g. probably usingyield
) in future?