summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorLoan (lse) <lse@odoo.com>2020-10-15 13:32:30 +0000
committerLoan (lse) <lse@odoo.com>2020-10-15 17:04:28 +0000
commitbe1b2d4f4c6bd7c78cbc51e7fadeac51f38e9194 (patch)
treed199e750f70e9c7d7efc40246ffb886242f7b96e /addons/web/static/src/js
parent052c524d7868ea683038d18a22022658abb0511c (diff)
[FIX] models.py: performance on filtered_domain on big recordset
Performance issue arise when the recordset is very large due to the union operator which apply at worst `len(self)` times. By storing the ids then browse on them we avoid the union operation execution. PySpy: https://drive.google.com/file/d/1jnxuSWGf2WmqeRz7zQOpBpmeRE5YnTwS/view?usp=sharing filtered_domain (odoo/models.py:5398) take 65.6% of the graph (55.7% of the 85% of button_confirm) To confirm a RFQ with 10 000 of the same product: Before this commit: ~42s After this commit: ~10s OPW-2347525 closes odoo/odoo#60130 X-original-commit: 8b0eeb5076ed5387ca7132d79182800e10c6895e Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions