I've moved all my *_count updates to postgres triggers (I'm on rails), along with any kind of…
Maximiliano Guzenski
61

You’re right. My article was primarily intended to show how prepare_changes work, using a feature coming from Rails that many people use (I think).

Can you write a little snippet, with the procedure and the trigger created within the migration ? I will recommend it so people reading the article will see how to do it directly in Postgres.