> There are limits to ORMs that allow the complexity to be addressed.

Well, there are some nice benefits to having an identity map.  You can
have transient state used for the duration of a request.   However it
introduces a lot more error conditions to consider.

u = User.find(1)
u.name="Koz"
u2 = User.find(1) (you really have to either return the same instance
as u, or raise an error).

It'd be nice if we can solve the common situations such as:

u.posts.first.user == u

But a full on identity map is probably a way off yet.


-- 
Cheers

Koz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to