Pedro M. Baeza 1dbf6b19bd [FIX] account_financial_report: Avoid slow vacuum due to ondelete=cascade
`report_journal_ledger` is auto-vacuumed as any transient model, but has some
ondelete="cascade" constraints that auto-remove subtables when a record is removed,
doing this operation very slow when selecting these sub-records.

Letting default ondelete="set null" would result in same performance bottleneck,
as the select on sub-table is performed the same for setting "null" value on them.

As a solution, and for avoiding a costly index operation, we delete by SQL sub-tables
rows in advance.

A bit of extra logic has been added for avoiding to remove that records if it's not
the turn of vacuum the parent table.
2024-11-29 15:38:40 +07:00
2024-10-08 12:47:04 +00:00
2024-10-20 15:39:21 +00:00
2024-10-08 12:47:04 +00:00
2024-10-08 12:47:04 +00:00
2024-10-20 15:39:21 +00:00
2024-10-08 12:47:04 +00:00
2024-10-08 12:47:04 +00:00
2024-10-08 12:47:04 +00:00
2024-10-20 15:39:21 +00:00
2024-10-08 12:47:04 +00:00
2024-10-20 15:39:21 +00:00
2024-10-08 12:47:04 +00:00

Runboat Pre-commit Status Build Status codecov Translation Status

account-financial-reporting

account-financial-reporting

This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Description
No description provided
Readme 31 MiB
Languages
HTML 40.2%
Python 39%
JavaScript 18.6%
CSS 1.9%
SCSS 0.3%