diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-29 16:28:19 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-29 16:28:19 -0400 |
| commit | 5686472f42468afc98d7daf61b850333aebb6a9d (patch) | |
| tree | 65a002ffedbd241927bab476b02a6cb8e143645c /lib/sqlalchemy/orm/state.py | |
| parent | 9449c102768e9dc14d28405caec31a9957d52408 (diff) | |
| download | sqlalchemy-5686472f42468afc98d7daf61b850333aebb6a9d.tar.gz | |
- defaultdict benchmarks faster than a namedtuple; OK
- inline the column-based expiration operations as well
Diffstat (limited to 'lib/sqlalchemy/orm/state.py')
| -rw-r--r-- | lib/sqlalchemy/orm/state.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/sqlalchemy/orm/state.py b/lib/sqlalchemy/orm/state.py index 17872a9b4..3c12fda1a 100644 --- a/lib/sqlalchemy/orm/state.py +++ b/lib/sqlalchemy/orm/state.py @@ -334,20 +334,6 @@ class InstanceState(interfaces.InspectionAttr): self.manager[key].impl._invalidate_collection(old) self.callables.pop(key, None) - def _expire_attribute_pre_commit(self, dict_, key): - """a fast expire that can be called by column loaders during a load. - - The additional bookkeeping is finished up in commit_all(). - - Should only be called for scalar attributes. - - This method is actually called a lot with joined-table - loading, when the second table isn't present in the result. - - """ - dict_.pop(key, None) - self.callables[key] = self - @classmethod def _row_processor(cls, manager, fn, key): impl = manager[key].impl |
