-
-
Notifications
You must be signed in to change notification settings - Fork 118
[18.0][IMP]intrastat_product: improve search to avoid massive memory consumption #329
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
Conversation
|
LGTM |
Segui-S73
left a comment
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.
LGTM
|
This PR has the |
|
@OCA/intrastat-maintainers Please, can you review/merge this PR? |
etobella
left a comment
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.
Makes sense
|
/ocabot merge patch |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at 750abe1. Thanks a lot for contributing to OCA. ❤️ |
The invoice search in the Intrastat declaration has been modified to optimize performance on large databases.
Previously, the query caused memory errors due to loading too many records and relational fields.
Now,
with_context(prefetch_fields=False)avoids unnecessary prefetch and significantly improving the action's speed and memory consumption.I have attached comparative screenshots showing the response time before and after the change.