summaryrefslogtreecommitdiff
path: root/addons/barcodes/static
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-04-17 19:02:10 +0200
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-04-18 08:17:50 +0200
commitffdfbed42c48a4b85c26f224f32003b8bda2ce78 (patch)
treeb0d06e11fc3a8121778a6c19f275fbfb46372872 /addons/barcodes/static
parentb15e805b5ad40e1e8e08e9be1ba248da66158bc9 (diff)
[FIX] calendar: avoid memory overflow
On a DB with thousands of events including recurring ones, fetching the complete list of events might lead to a memory overflow due to the prefetching of all virtual events. We reduce the memory footprint by handling no more than 50,000 records at a time and clearing the cache at each step. This limit is purely arbitrary, but seems to be a good compromise between performance and memory usage. opw-1832482
Diffstat (limited to 'addons/barcodes/static')
0 files changed, 0 insertions, 0 deletions