odoo/upgrade-util#435
Created by Upgrade, Christophe Simonis (chs)
Blocked
- Merge method
- Review
-
CI
- ci/runbot: Test upgrades between stable versions
- ci/upgrade_enterprise: Test upgrades for enterprise master
- label
- odoo-dev:master-randomize-explode_query_range-chs
- head
- 57e4a58cab21fa549a972659cd51739d9c7909a8
| odoo/upgrade-util | |
|---|---|
| master | #435 missing r+ |
[IMP] util.explode_query_range
Randomize the generated queries.
As we split queries based on their ids, it's more likely than consecutive queries (i.e. id BETWEEN 101 AND 200 and id BETWEEN 201 AND 300) will hit the same page when being executed by two concurrent PG processes, blocking themself with read and write locks. By shuffling the queries, we avoid such problem.