Pulling the trigger: Update counter caches without Active Record callbacks
A complete how-to on using database triggers in a Rails app for ensuring that aggregated values filtering is fast, consistent, and avoids nasty race conditions. No Active Record callbacks involved!
Post a comment