From 9bab63b69341bf9d89a30de2f624644b55afc6e9 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 30 May 2010 20:24:08 -0400 Subject: - Pool classes will reuse the same "pool_logging_name" setting after a dispose() occurs. - Engine gains an "execution_options" argument and update_execution_options() method, which will apply to all connections generated by this engine. - Added more aggressive caching to the mapper's usage of UPDATE, INSERT, and DELETE expressions. Assuming the statement has no per-object SQL expressions attached, the expression objects are cached by the mapper after the first create, and their compiled form is stored persistently in a cache dictionary for the duration of the related Engine. - change #3 required change #1 so that we could test a set of mappers operating over the course of many engines without memory usage increase. --- lib/sqlalchemy/engine/threadlocal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/engine/threadlocal.py') diff --git a/lib/sqlalchemy/engine/threadlocal.py b/lib/sqlalchemy/engine/threadlocal.py index 001caee2a..ec2b4f302 100644 --- a/lib/sqlalchemy/engine/threadlocal.py +++ b/lib/sqlalchemy/engine/threadlocal.py @@ -37,7 +37,8 @@ class TLEngine(base.Engine): self._connections = util.threading.local() proxy = kwargs.get('proxy') if proxy: - self.TLConnection = base._proxy_connection_cls(TLConnection, proxy) + self.TLConnection = base._proxy_connection_cls( + TLConnection, proxy) else: self.TLConnection = TLConnection -- cgit v1.2.1