On Mar 19, 2007, at 8:29 AM, che wrote:
> > Hi, > I tried to eager load some data from class that have reference to > polymorhic class. The object model is: class Base inherited by both > Manager and Address, Managers has reference to Address - when I stop > here SA can eager loading the addresses of managers. The problem arise > when I add another class MailAddress that inherits Address - in this > case address of Managers are simply lazy loaded, despite that it is > explicitly set to be eager. Maybe the problem is that somehow > polymorhic and eager cannot be combined? > please advice > thats correct, in many cases eager loading will "degrade" to lazy loading, particularly when it detects a self-referential table relationship (which happens often with polymorphic relationships). if you turn on sqlalchemy.orm logging you should see this in the logs to confirm. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" 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/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
