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

Publish new version on Pypi to handle inherit_cache warning #19

Open acbart opened 4 months ago

acbart commented 4 months ago

When you install this library and use it in the latest version of SqlAlchemy, you get the following warning:

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 warning at: https://sqlalche.me/e/20/cprf)

It looks like this was fixed in https://github.com/spoqa/sqlalchemy-utc/commit/c97363951b37f879db4c4a1a70b11bfa416f91b2

So I would suggest that a new version be deployed on Pypi so that folks don't have to use the Github version.