On Saturday, August 29, 2015 at 4:49:06 PM UTC-7, Janko Marohnić wrote: > > Jeremy, I wanted to ask you something about these triggers. I use the > counter cache trigger, but if I multi_insert the objects that are counted, > the counter caches don't get updated. Is this Postgres' limitation? Could > this also happen on dataset-level updates, that the trigger isn't hit? >
The counter caches should get updated correctly, regardless of whether you are inserting multiple rows at once or a single row. Unless you've disabled triggers, if the counter cache isn't being updated correctly, that's probably either a bug or a misconfiguration. Can you post a self-contained example that I can test with? Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
