summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-06-29 00:10:59 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-06-29 00:10:59 -0400
commit992e06412cf124d511d56d2741988f503f4c8085 (patch)
tree9edc61bd5124e80373046901d431f66e95a7c472 /lib/sqlalchemy/sql/compiler.py
parent3be078425fdcf0d0baee01328a729efc5087a535 (diff)
downloadsqlalchemy-992e06412cf124d511d56d2741988f503f4c8085.tar.gz
- attach the ResultMetaData to the Compiled object, when we detect that
the compiled cache is used. That allows us to cache the whole metadata and save on creating it at result time, when compiled cache is used.
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index 11608ef3b..010df5a16 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -170,6 +170,8 @@ class Compiled(object):
defaults.
"""
+ _cached_metadata = None
+
def __init__(self, dialect, statement, bind=None,
compile_kwargs=util.immutabledict()):
"""Construct a new ``Compiled`` object.