-
Notifications
You must be signed in to change notification settings - Fork 112
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
Fix cache warnings #338
Fix cache warnings #338
Conversation
09eb24d
to
c1ede80
Compare
c1ede80
to
8ab68df
Compare
Hi @zzzeek |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heya
if you dont have time to test these constructs very carefully in a caching scenario, I would advise setting all the inherit_cache to False for now; most of them look not ready for caching yet in any case as they contain state that seems likely to affect SQL generation or return types.
ideally for caching you'd have some SQL statements that are run many times, given a sample of the construct where you change it on each run, and ensure the correct SQL / parameters are emitted.
Thank you very much for these insights @zzzeek ! |
that's fine, you wont see perf issues compared to 1.3.x except in the area where applications use a lot of ORM lazy loading and your special functions happen to be in those queries, those will not be cached whereas in 1.3 they were. re: the caching I would say there's no need to rush turning it on, when you have time I can try to give you more background on what exactly it does. I've worked with these caching approaches for years now but it should be expected they can easily seem opaque at first. |
No description provided.