Skip to content
Snippets Groups Projects
Commit 6ffb6821 authored by Nicolas Lempereur's avatar Nicolas Lempereur
Browse files

[FIX] mail: lower RAM usage of mail.message().search(limit=None)


On an instance with 4 million messages, opening Settings > Technical >
Messages could increase residual memory usage in a given situation usage
by:

- 1.5 GB for odoo
- 3 GB for postgresql (a part might just be cache depending on config)

With this change breaking the request in several ones, increase is:

- 0.5 GB for odoo (for the millions of ids in dictionaries and list)
- 0.1 GB for postgresql

opw-2232065
closes #49689

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 3d48e2b4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment