diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-07-13 16:28:42 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-07-13 16:29:07 -0400 |
commit | 731a4daf63dc0fdb784d195e89c5f357420657fb (patch) | |
tree | 274bd30f51930e070c086b9a8cc34b4e41b52547 /test/engine/test_pool.py | |
parent | fd8b2d188c58626bdc0d2f11341bc99ba81ae91d (diff) | |
download | sqlalchemy-731a4daf63dc0fdb784d195e89c5f357420657fb.tar.gz |
A performance fix related to the usage of the :func:`.defer` option
when loading mapped entities. The function overhead of applying
a per-object deferred callable to an instance at load time was
significantly higher than that of just loading the data from the row
(note that ``defer()`` is meant to reduce DB/network overhead, not
necessarily function call count); the function call overhead is now
less than that of loading data from the column in all cases. There
is also a reduction in the number of "lazy callable" objects created
per load from N (total deferred values in the result) to 1 (total
number of deferred cols).
[ticket:2778]
Diffstat (limited to 'test/engine/test_pool.py')
0 files changed, 0 insertions, 0 deletions