Skip to content
Snippets Groups Projects
Commit 84bc58fc 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#62051

X-original-commit: 904a46f2
Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
Signed-off-by: default avatarPaul Morelle <madprog@users.noreply.github.com>
parent 044bca5e
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