odoo/upgrade-util#181
Created by Upgrade, Carsten Wolff (cawo)
Blocked
- Merge method
- Review
-
CI
- ci/runbot: Test upgrades between stable versions
- ci/upgrade_enterprise: Test upgrades for enterprise master
- label
- odoo-dev:master-imp_pg_add_returning_id_to_parallel_execute-cawo
- head
- 343aa7ee62805d38fc750057b414f6204749ecdd
odoo/upgrade-util | |
---|---|
master | #181 missing r+ |
pg: add returning_id option to parallel_execute
The default behavior is unchanged.
This adds the possibility to parallelize modifying queries that have a RETURNING id
clause. For those, return the resulting ids (in a defined order) instead of the affected row count.
To avoid misuse add a warning to the docstring and try to detect queries other than the ones of the intended form. Raise an error if such are found.