@Profiler.profile
def test_baked_query_cols_only(n):
 bakery = baked.bakery()
 s = Session(bind=engine)
 for id_ in random.sample(ids, n):
  q = bakery((lambda s: s.query(Customer.id, Customer.name, Customer.description)))
  q += (lambda q: q.filter((Customer.id == bindparam('id'))))
  q(s).params(id=id_).one()

@ Profiler . profile def test_baked_query_cols_only ( n ) : bakery = baked . bakery ( ) s = Session ( bind = engine ) for id_ in random . sample ( ids , n ) : q = bakery ( ( lambda s : s . query ( Customer . id , Customer . name , Customer . description ) ) ) q += ( lambda q : q . filter ( ( Customer . id == bindparam ( 'id' ) ) ) ) q ( s ) . params ( id = id_ ) . one ( )
test a baked query of only the entity columns .