test core, reusing the same statement, no cache
(n)
| 150 | |
| 151 | @Profiler.profile |
| 152 | def test_core_reuse_stmt(n): |
| 153 | """test core, reusing the same statement, no cache""" |
| 154 | |
| 155 | stmt = select(Customer.__table__).where(Customer.id == bindparam("id")) |
| 156 | with engine.connect() as conn: |
| 157 | for id_ in random.sample(ids, n): |
| 158 | row = conn.execute(stmt, {"id": id_}).first() |
| 159 | tuple(row) |
| 160 | |
| 161 | |
| 162 | @Profiler.profile |