@loader_option()
def immediateload(loadopt, attr):
 loader = loadopt.set_relationship_strategy(attr, {'lazy': 'immediate'})
 return loader

@ loader_option ( ) def immediateload ( loadopt , attr ) : loader = loadopt . set_relationship_strategy ( attr , { 'lazy' : 'immediate' } ) return loader
indicate that the given attribute should be loaded using an immediate load with a per-attribute select statement .