diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-13 19:27:14 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-13 19:27:14 +0000 |
commit | ffe0ab5ba62be5df4c18829131cd58a52966d3b7 (patch) | |
tree | 2a99d07ffb25544c6fbc107fb00bec9e80bed9bf /lib/sqlalchemy/orm/identity.py | |
parent | 6b10e0b26d226258d5cbcbb686629c9b82e9266b (diff) | |
download | sqlalchemy-ffe0ab5ba62be5df4c18829131cd58a52966d3b7.tar.gz |
- For those who might use debug logging on
sqlalchemy.orm.strategies, most logging calls during row
loading have been removed. These were never very helpful
and cluttered up the code.
- Some internal streamlining of object loading grants a
small speedup for large results, estimates are around
10-15%.
Diffstat (limited to 'lib/sqlalchemy/orm/identity.py')
-rw-r--r-- | lib/sqlalchemy/orm/identity.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/identity.py b/lib/sqlalchemy/orm/identity.py index 69ca31eda..4650b066f 100644 --- a/lib/sqlalchemy/orm/identity.py +++ b/lib/sqlalchemy/orm/identity.py @@ -122,7 +122,9 @@ class WeakInstanceDict(IdentityMap): def add(self, state): if state.key in self: if dict.__getitem__(self, state.key) is not state: - raise AssertionError("A conflicting state is already present in the identity map for key %r" % (state.key, )) + raise AssertionError("A conflicting state is already " + "present in the identity map for key %r" + % (state.key, )) else: dict.__setitem__(self, state.key, state) self._manage_incoming_state(state) |