account-financial-reporting/account_financial_report/readme
Pedro M. Baeza dceebedd5c [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.
2019-10-12 02:26:17 +02:00
..
CONTRIBUTORS.rst [FIX] account_financial_report: Avoid slow vacuum due to ondelete=cascade 2019-10-12 02:26:17 +02:00
DESCRIPTION.rst [FIX+IMP] account_financial_report: new README structure + fixes in usability 2019-06-13 21:10:59 +02:00
HISTORY.rst account_financial_report: add option to hide parent hierarchy levels 2019-06-13 21:13:09 +02:00