I recently upgraded from 0.10.1 to 1.0.0 (I believe I had this issue an an attempted upgrade to 0.10.2 as well). The situation I'm seeing is that in a many to one relationship there are now n queries for each of the relationship members where previously there was just one. This is resulting in some serious performance impact over 0.10.1, I believe this 'TODO' note in dm-core/associations/many_to_one.rb summarizes what I'm seeing:
# TODO: lookup the resource in the Identity Map, and make sure # it matches the query criteria, otherwise perform the query Is there a fix on the horizon? Any quick and dirty hack I can use to get around this in the interim? My relationships are all relating the models to each other using their primary keys, I would think it would be easy to make this work with the identity map since they would exist already by PK. Thanks, Paul -- You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en.
