@Profiler.profile
def test_core_reuse_stmt(n):
 stmt = select([Customer.__table__]).where((Customer.id == bindparam('id')))
 with engine.connect() as conn:
  for id_ in random.sample(ids, n):
   row = conn.execute(stmt, id=id_).first()
   tuple(row)

@ Profiler . profile def test_core_reuse_stmt ( n ) : stmt = select ( [ Customer . __table__ ] ) . where ( ( Customer . id == bindparam ( 'id' ) ) ) with engine . connect ( ) as conn : for id_ in random . sample ( ids , n ) : row = conn . execute ( stmt , id = id_ ) . first ( ) tuple ( row )
test core .