When displaying a count of records, this will generate extra SQL Queries. Learn how to reduce the number of SQL queries called with counter caching the number of associated records. https://www.driftingruby.com/episodes/counter-cache-associations
1 Like