search for: identitymap

Displaying 2 results from an estimated 2 matches for "identitymap".

2011 Apr 07
0
accepts_nested_attributes_for, validations, :inverse_of option on associations, and IdentityMap
...ng sequel queries until the data is needed, which, if you''re not careful, causes rendering of the edit view to refetch the data. It feels like we are working too hard and changing too much controller code to fix this, and not succeeding all that well to boot. It also occurs to me that the IdentityMap stuff now in Edge might be the solution or part of the solution to this problem. As I understand it this will prevent multiple instantiations of the same AR object in a given thread. What we really want is for the in-memory object graph to be preserved and keep the attributes from being overwritt...
2006 Mar 07
3
ActiveRecord allows un-synced aliases?
q1 = Question.find(1) q2 = Question.find(1) Now, we find q1.__id__ != q2.__id__. It appears the two aliases are not kept in sync: q1.name => ''old name'' q2.name = ''new name'' q2.save! q1.name => ''old name'' q2.name => ''new name'' q1.reload q1.name =>