4 things you can try before using a counter cache in rails

Maybe you have heard about the counter cache feature.A counter cache makes finding the number of belonging objects more efficient by keeping a column with the count.Rails makes it easy to implement it, but is not free. Sometimes it may be better not to use it.Here are four things you could try before or instead of using a counter cache, without introuducing n 1 queries.
4 things you can try before using a counter cache in rails #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/4-things-you-can-try-before-using-a-counter-cache-in-rails

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles