I wasn't sure where this stuff was being tracked, but I did find a
circular reference in the database wrapper. The DatabaseCreation and
DatabaseIntrospection objects being created in the MySQL wrapper where
passing references of itself, but there wasn't a per-defined method
for removing those references.
Should BaseDatabaseIntrospection and BaseDatabaseCreation be holding a
weakref of the database wrapper instead?
Or is there some connection pooling system that needs to be aware of
the Mulit-db stuff?
Does any of this seem sane?
My _hack_ (temp and not perfect I know) involved a class wrapping
around QuerySet and monitoring the clone counts (split per wrapper
instance) so when the final QuerySet was deleted it would clear the
two references allowing the database wrapper to be garbage collected.
TIA,
Michael LaRue
On Mar 19, 2:10 pm, Alex Gaynor <
alex.gay...@gmail.com> wrote: