Skip to content
Snippets Groups Projects
Commit 904a46f2 authored by Paul Morelle's avatar Paul Morelle
Browse files

[FIX] event: avoid too large prefetching of event.mail


The prefetching engine wants to prefetch all the registrations to all
the events of all the schedulers, which may make a lot of data.

If the autocommit is on, then all this prefetched data is discarded at
each loop.

This commit limits the prefetching to each scheduler, so that we avoid
prefetching the data unnecessarily.

closes odoo/odoo#62042

Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
parent 5eb40d22
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment