[Sqlalchemy-tickets] Issue #4132: Documentation: benchmark code is wrong (zzzeek/sqlalchemy)
Brought to you by:
zzzeek
From: Keonwoo K. <iss...@bi...> - 2017-11-09 03:30:12
|
New issue 4132: Documentation: benchmark code is wrong https://bitbucket.org/zzzeek/sqlalchemy/issues/4132/documentation-benchmark-code-is-wrong Keonwoo Kang: In [Performance](http://docs.sqlalchemy.org/en/latest/faq/performance.html) page, there's code for comparing session.add and session.bulk_save_objects. In this code, actually `test_sqlalchemy_orm_bulk_save_objects` is inserting 90,000 records while `test_sqlalchemy_orm` inserting 100,000 records. Because of `n1 = n1 - 10000` execute before inserting, last loop will insert 0 records. |