]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Remove LRU warnings
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 8 Sep 2017 00:38:00 +0000 (20:38 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 9 Sep 2017 01:42:07 +0000 (21:42 -0400)
commite83024d3fa45973d4dc1809282588dda8ac9bfce
treedcddea1539a9c018c02a408f0bebd22edcf18fbb
parent5ae984b946f87cc485c29c4c947a8649d4c4c422
Remove LRU warnings

Removed the warnings that are emitted when the LRU caches employed
by the mapper as well as loader srtategies reach their threshold; the
purpose of this warning was at first a guard against excess cache keys
being generated but became basically a check on the "creating many
engines" antipattern.   While this is still an antipattern, the presense
of test suites which both create an engine per test as well as raise
on all warnings will be an inconvenience; it should not be critical
that such test suites change their architecture just for this warning
(though engine-per-test suite is always better).

Change-Id: I41ef8cd642d05a845f53119b196440f9d7879cd9
Fixes: #4071
doc/build/changelog/unreleased_12/4071.rst [new file with mode: 0644]
doc/build/faq/performance.rst
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_mapper.py