I have a mapper defined as
mapper(HierNode, HierTable, properties={ 'tools' : relation(ToolNode), }) Usually I am interested in iterating over all 'tools' and lazy loading works fine. However sometimes I need to determine if one HierNode has tools or not. Loading all tools would be too expensive for a has_tools property. It would be enough to check for only one tools (LIMIT 1) and return True/False. Is there any way to achieve that? Andreas
pgp0EZ1gaasmp.pgp
Description: PGP signature