- we use orm
- yes, and?
- and we have a problem with it…
- you already said that
now, imagine a simple scenario:
- objects table (let's name it “topics"), which contains column: posts_count
- sub-objects table (posts), with foreign key to topics
- triggers which update posts_count on insert/update/delete on posts
simple? yes? well. it was. now, enter disaster: orm.
Continue reading how to check if given update is from trigger or why i hate orms?