See in Rails console how many records your query returns. It can help with solving performance issues.
Igor Kasyanchuk
May 10, 2018 11:36am
MIT