Skip to content

Conversation

@aj-fuentes
Copy link
Contributor

In most cases when we pass a list of ids to recompute_fields we just run a query to get them. The main downside of this approach is when the list is too big: it can cause MemoryErrors. Instead we can let recompute_fields use a query to get the ids and take the necessary precautions to not fetch millions of entries all at once. As a nice side effect code becomes easier to review since we don't need to check the fetching of ids is done correctly.

@robodoo
Copy link
Contributor

robodoo commented Sep 10, 2025

Pull request status dashboard

@aj-fuentes
Copy link
Contributor Author

upgradeci skip

@aj-fuentes aj-fuentes force-pushed the master-recompute_query-afu branch from 7fca3a9 to 94ca49a Compare September 10, 2025 12:04
@aj-fuentes
Copy link
Contributor Author

upgradeci retry with always only base account crm delivery helpdesk_sale_timesheet helpdesk_timesheet hr_attendance hr_expense hr_holidays hr_recruitment_extract l10n_in_sale l10n_it_edi l10n_mx_edi_stock loyalty mrp point_of_sale pos_sale project_enterprise purchase resource sale sale_project_forecast sale_renting sale_stock sale_subscription sale_timesheet_margin stock

@aj-fuentes aj-fuentes force-pushed the master-recompute_query-afu branch from 94ca49a to 8e304a7 Compare September 10, 2025 12:42
In most cases when we pass a list of `ids` to `recompute_fields` we just
run a query to get them. The main downside of this approach is when the
list is too big: it can cause MemoryErrors. Instead we can let
`recompute_fields` use a query to get the ids and take the necessary
precautions to not fetch millions of entries all at once. As a nice side
effect code becomes easier to review since we don't need to check the
fetching of ids is done correctly.
@aj-fuentes aj-fuentes force-pushed the master-recompute_query-afu branch from 8e304a7 to a01bb83 Compare September 10, 2025 12:57
@KangOl
Copy link
Contributor

KangOl commented Sep 10, 2025

upgradeci retry

Copy link
Contributor

@KangOl KangOl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants