sqlalchemy-imageattach
sqlalchemy-imageattach copied to clipboard
thread-localized BaseImageQuery._stored_images/_deleted_images
Faced an issue that session state be corrupted due to BaseImageQuery._stored_images and ._deleted_images are accessed via class level when we use gevent-based WSGI container and it gets high workload. To resolve converted that containers to thread(gevent)-local storage.