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

[16.0][OU][IMP] account: speed up new compute fields init #4456

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

chienandalu
Copy link
Member

Precompute this new store computed fields:

  • account.bank.statement.first_line_index
  • account.bank.statement.is_complete
  • account.move.is_storno
  • account.move.auto_post_until

Pending to be tested on migration but hopefully this would scrath about 45 minutes in a database with large account_move and account_bank_stament_line tables

cc @Tecnativa TT46020

please review @pedrobaeza

Precompute this new store computed fields:

- account.bank.statement.first_line_index
- account.bank.statement.is_complete
- account.move.is_storno
- account.move.auto_post_until

TT46020
@pedrobaeza pedrobaeza added this to the 16.0 milestone Jun 12, 2024
@pedrobaeza pedrobaeza merged commit dd3c928 into OCA:16.0 Jun 12, 2024
2 checks passed
@pedrobaeza pedrobaeza deleted the 16.0-imp-account-perf branch June 12, 2024 07:04
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

Successfully merging this pull request may close these issues.

2 participants