[Sqlalchemy-commits] commit/sqlalchemy: 3 new changesets
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2013-10-13 20:55:26
|
3 new commits in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/f00544a589d5/ Changeset: f00544a589d5 Branch: None User: zzzeek Date: 2013-10-13 22:42:32 Summary: - Added new option to :func:`.relationship` ``distinct_target_key``. This enables the subquery eager loader strategy to apply a DISTINCT to the innermost SELECT subquery, to assist in the case where duplicate rows are generated by the innermost query which corresponds to this relationship (there's not yet a general solution to the issue of dupe rows within subquery eager loading, however, when joins outside of the innermost subquery produce dupes). When the flag is set to ``True``, the DISTINCT is rendered unconditionally, and when it is set to ``None``, DISTINCT is rendered if the innermost relationship targets columns that do not comprise a full primary key. The option defaults to False in 0.8 (e.g. off by default in all cases), None in 0.9 (e.g. automatic by default). Thanks to Alexander Koval for help with this. [ticket:2836] Affected #: 4 files https://bitbucket.org/zzzeek/sqlalchemy/commits/ee0302161a85/ Changeset: ee0302161a85 Branch: master User: zzzeek Date: 2013-10-13 22:43:57 Summary: name Affected #: 1 file https://bitbucket.org/zzzeek/sqlalchemy/commits/28a349135792/ Changeset: 28a349135792 Branch: rel_0_8 User: zzzeek Date: 2013-10-13 22:54:21 Summary: - Added new option to :func:`.relationship` ``distinct_target_key``. This enables the subquery eager loader strategy to apply a DISTINCT to the innermost SELECT subquery, to assist in the case where duplicate rows are generated by the innermost query which corresponds to this relationship (there's not yet a general solution to the issue of dupe rows within subquery eager loading, however, when joins outside of the innermost subquery produce dupes). When the flag is set to ``True``, the DISTINCT is rendered unconditionally, and when it is set to ``None``, DISTINCT is rendered if the innermost relationship targets columns that do not comprise a full primary key. The option defaults to False in 0.8 (e.g. off by default in all cases), None in 0.9 (e.g. automatic by default). Thanks to Alexander Koval for help with this. [ticket:2836] Conflicts: lib/sqlalchemy/orm/relationships.py Affected #: 5 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. |