[blf@Logging /~]:

February 12, 2008

扔掉 ORM 的理由

Filed under: database — blowfisher @ 11:49 pm

how to check if given update is from trigger or why i hate orms?

* 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.

— by depesz

3 Comments »

  1. Do you fairly think this is news? I like and read your blog to get necessary information, but sometimes melancholy kills me

    Comment by Brandon — April 7, 2008 @ 2:25 am

  2. Blog is NOT ALWAYS have to be news.

    Comment by godindark — April 7, 2008 @ 7:31 pm

  3. Yeah, but never the less, I think this post is debatable.

    Comment by Totengraber — April 9, 2008 @ 6:36 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

www.blowfisher.net  |  Powered by WP