-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
chunked: should it flush ? #362
Comments
|
Ouch, that explains it then 😢 💡 Perhaps we could have a warning system to manually whitelist methods for new versions |
Well, this is the only method where it mixes ORM. The rest is thought for handling database things, so I don't think the rest are affected. |
It's a good question, and I don't think anybody explicitly checked this after 16.0 was released, but |
Indeed it does, since: odoo/odoo#66938 The thing is we've stopped calling The fix could be to simply go back to calling However I'm wondering if we should explicitly call |
@ivantodorovich Thanks for clarifying! I think it's a very good idea of yours to go back to |
I've created this PR with a fix proposal: |
The
chunked
method is invalidating the cache on each iteration, but it's never flushing.I'm encountering an issue with this in Odoo⚠️ .
16.0
, where by usingchunked
I get into CacheMiss errors due to the cache being lost, including the previous one before it's being calledBy looking at the code I see it's invalidating the cache but it's never flushing. This looks like a red flag to me, although I've never encountered any issues with
chunked
before.Perhaps it's due to odoo/odoo#66938
The text was updated successfully, but these errors were encountered: