@Profiler.profile
def test_orm_bundles(n):
 sess = Session(engine)
 bundle = Bundle('customer', Customer.id, Customer.name, Customer.description)
 for row in sess.query(bundle).yield_per(10000).limit(n):
  pass

@ Profiler . profile def test_orm_bundles ( n ) : sess = Session ( engine ) bundle = Bundle ( 'customer' , Customer . id , Customer . name , Customer . description ) for row in sess . query ( bundle ) . yield_per ( 10000 ) . limit ( n ) : pass
load lightweight "bundle" objects using the orm .