spoqa / sqlalchemy-utc

SQLAlchemy type to store aware datetime values
https://pypi.python.org/pypi/SQLAlchemy-Utc
MIT License
101 stars 20 forks source link

Added `inherit_cache` to utcnow #17

Closed stabacco closed 2 years ago

stabacco commented 2 years ago

getting this error from sqlalchemy 1.4:

SAWarning: Class utcnow 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)
stabacco commented 2 years ago

any news on this one, guys? Thanks @cymonn @dahlia

cymonn commented 2 years ago

Oh, sorry for late merge. @stabacco cc @dahlia