summaryrefslogtreecommitdiff
path: root/addons/hw_drivers/drivers/DisplayDriver.py
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2020-03-30 14:54:01 +0000
committerDavid Beguin <dbe@odoo.com>2020-05-15 08:35:35 +0000
commit0cc6a76891d022cf44ba1117799fa0165663d4e8 (patch)
tree4fb050ade94cf33b02708cdebc207de8610b8783 /addons/hw_drivers/drivers/DisplayDriver.py
parenta63a314f20a4a27d999d09a9cf2f46ace941f025 (diff)
[IMP] crm: improve automated probability cron
Purpose ======= Update Lead Probability CRON is currently running in a single transaction and is locking lead table for too long. This task aim to improve the performance of the cron by: - reducing the number of update (instead of updating one by one the leads, update all lead with same value to update) - Making it multi-transactional (to avoid locking table during the whole process) Spec ==== - compute probability and automated probability values with only 2 decimals (needed to compare new and old probability + to avoid too many values in the group by probability) - Group the leads to update by Probability value (rounded by 2 decimals) Note : This commit doesn't change the field definition to avoid migration. - Update leads by batch of limited number (=step), to avoid transaction to take too long. After each batch execution, commit to unlock the table before continuing with next batch. Task ID: 2224677 closes odoo/odoo#51310 X-original-commit: ee346936efc6cabce14cb73223ecd2e6a0cc1e3f Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/hw_drivers/drivers/DisplayDriver.py')
0 files changed, 0 insertions, 0 deletions