diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-01-30 11:55:22 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-02-01 16:35:35 -0500 |
commit | 5ec5b0a6c7b618bba7926e21f77be9557973860f (patch) | |
tree | 2d680370e2c8551d92b04ad2155eff5fd95ecb7a /lib/sqlalchemy/sql/compiler.py | |
parent | 532026f97f402d6673cd9746f1a7daee99327a68 (diff) | |
download | sqlalchemy-5ec5b0a6c7b618bba7926e21f77be9557973860f.tar.gz |
reorganize mapper compile/teardown under registry
Mapper "configuration", which occurs within the
:func:`_orm.configure_mappers` function, is now organized to be on a
per-registry basis. This allows for example the mappers within a certain
declarative base to be configured, but not those of another base that is
also present in memory. The goal is to provide a means of reducing
application startup time by only running the "configure" process for sets
of mappers that are needed. This also adds the
:meth:`_orm.registry.configure` method that will run configure for the
mappers local in a particular registry only.
Fixes: #5897
Change-Id: I14bd96982d6d46e241bd6baa2cf97471d21e7caa
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
0 files changed, 0 insertions, 0 deletions