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

@ Profiler . profile def test_orm_columns ( n ) : sess = Session ( engine ) for row in sess . query ( Customer . id , Customer . name , Customer . description ) . yield_per ( 10000 ) . limit ( n ) : pass
load individual columns into named tuples using the orm .