Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAWarning: Class FullTextSearch will not make use of SQL compilation caching #21

Open
janluke opened this issue Oct 3, 2022 · 4 comments

Comments

@janluke
Copy link

janluke commented Oct 3, 2022

SAWarning: Class FullTextSearch 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)

@themaharshpatel
Copy link

Have you found any resolution to it?

@janluke
Copy link
Author

janluke commented Nov 9, 2022

Not exactly, I do this:

Alternatively, this attribute may be set to False which will disable this warning.

@themaharshpatel
Copy link

Where did you added it?

@janluke
Copy link
Author

janluke commented Nov 9, 2022

Right after import

# Suppress warning
# https://github.com/mengzhuo/sqlalchemy-fulltext-search/issues/21
FullTextSearch.inherit_cache = False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants