summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorIvan Yelizariev <iel@odoo.com>2021-01-28 16:14:41 +0000
committerRaphael Collet <rco@odoo.com>2021-02-02 15:18:41 +0000
commitd66652b4aa514546356306e3eb48eaecaba07c33 (patch)
tree0bc86672ef4a828be3e7ca7989ed4c537aef5e79 /addons/web_editor/static/src/js
parent7840b21483c0012174e6028a39b114ce56f06158 (diff)
[FIX] core: initialize new stored related field via SQL
Filling the new column in SQL is dramatically faster than doing it via the ORM, which iterates over all the records in the table. The test case is creating a related field for 100+ records with distinct values. Setting the field's value was taking more than 100 queries. It now takes 3 queries. task-2449313 opw-2380445 opw-2389376 https://github.com/odoo/enterprise/pull/15910 closes odoo/odoo#65421 X-original-commit: 82644c3ea20f7b5748f92ce4d0f4585335995d29 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions