odoo/upgrade-util#320
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
- Linked pull requests
- label
- odoo-dev:master-imp_parallel_iter_browse-cawo
- head
- 4497d4df100f9c4fdcb2b96d189048951494b885
| odoo/upgrade | odoo/upgrade-util | |
|---|---|---|
| master | #8447 missing r+ | #320 missing r+ |
[IMP] orm: parallel iter_browse
[IMP] orm: add optional parallelism to iter_browse.attr()
In some cases, e.g. if it is known that calling a certain method on the model will only trigger inserts or it is clear that updates will be disjunct, such method calls can be done in parallel.
[IMP] orm: add optional parallelism to iter_browse.create()
Like the same support added to __attr__ in the parent commit, this can only be used by callers when it is known that database modifications will be distinct, not causing concurrency issues or side-effects on the results.