Fix the following warning from SQAlchemy 1.4 by setting inherit_cache = Falseforjsonb_change_key_name:
SAWarning: Class jsonb_change_key_name will not make use of SQL
compilation caching as it does not set the 'inherit_cache' attribute to
``True``. This can have significant performance implications including
some performance degradations in comparison to prior SQLAlchemy
versions. Set this attribute to True if this object can make use of the
cache key generated by the superclass. Alternatively, this attribute may
be set to False which will disable this warning. (Background on this
error at: https://sqlalche.me/e/14/cprf)
Remove usage of _app_ctx_stack.top and _request_ctx_stack.top which are deprecated in Flask 2.2.0.
Fix the following warning from SQAlchemy 1.4 by setting
inherit_cache = False
forjsonb_change_key_name
:Remove usage of
_app_ctx_stack.top
and_request_ctx_stack.top
which are deprecated in Flask 2.2.0.