Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Care to explain? I haven't hear about it.



The IdentityMap makes sure that there is only 1 ActiveRecord instance for a given row in the database.

This basically means that calling Article.find(3) and Comment.where(:article_id => 3).first.article both return the same instance.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: