classic ORM query of the full entity, no cache
(n)
| 66 | |
| 67 | @Profiler.profile |
| 68 | def test_orm_query_classic_style(n): |
| 69 | """classic ORM query of the full entity, no cache""" |
| 70 | session = Session(bind=engine) |
| 71 | for id_ in random.sample(ids, n): |
| 72 | session.query(Customer).filter(Customer.id == id_).one() |
| 73 | |
| 74 | |
| 75 | @Profiler.profile |