diff options
| author | Raphael Collet <rco@odoo.com> | 2020-09-16 10:58:52 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-09-28 11:31:09 +0000 |
| commit | 4f8c3cc26a9738e67fc7569e1490f6f173c2439b (patch) | |
| tree | 29bfcdef35c3e5bcea0711a05f50ba70fd7c450b /addons/web_editor/static/src/scss/web_editor.variables.scss | |
| parent | 3bc0acea0ce961c02f0d4f95da3b45875d0d2216 (diff) | |
[FIX] core: compute on batches of maximum PREFETCH_MAX records
Calling a compute method on 1M records inevitably brings a worst case in
cache prefetching: the code that determines which records to fetch has
time complexity O(N²). We avoid this situation by calling the compute
method on maximum 1K records. Each computed batch has a "prefetch set"
of maximum 1K records too, which avoids the worst-case scenario above.
closes odoo/odoo#58647
X-original-commit: 0b1aa660b1d94fe46dea09670b875f2d81ca36a3
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web_editor/static/src/scss/web_editor.variables.scss')
0 files changed, 0 insertions, 0 deletions
