[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: Don't post-SELECT columns w/o a server default/onup
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2017-02-09 15:49:09
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/000e9603065e/ Changeset: 000e9603065e Branch: master User: zzzeek Date: 2017-02-09 03:00:28+00:00 Summary: Don't post-SELECT columns w/o a server default/onupdate for eager_defaults Fixed a major inefficiency in the "eager_defaults" feature whereby an unnecessary SELECT would be emitted for column values where the ORM had explicitly inserted NULL, corresponding to attributes that were unset on the object but did not have any server default specified, as well as expired attributes on update that nevertheless had no server onupdate set up. As these columns are not part of the RETURNING that eager_defaults tries to use, they should not be post-SELECTed either. Change-Id: I0d4f1e9d3d9717d68dcc0592f69456a1f1c36df8 Fixes: #3909 Affected #: 4 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |