On an ActiveAdmin page, filters can help make information more usable. But sometimes, we need to add filters that are more complex than normal, going beyond a simple ‘where’ clause applied to only one column of the table. To achieve this, we’ll start by defining the filter like this: In
Counter caches are great until you get 20,000 people following the same influencer and the counter cache on that person locks the whole database. The goal of this post is to go through the basics of counter caches explaining possible alternatives to overcome this. What are counter caches for? Counter