Skip to content
Snippets Groups Projects
Commit 894a4f7d authored by jbm-odoo's avatar jbm-odoo Committed by Yannick Tivisse
Browse files

[FIX] mail: Improve speed when opening systray messaging menu


Purpose
=======

Time to load systray messaging menu is too slow.

Time to load systray messaging menu:
- With 300 direct message channels, it takes at least 1.2 seconds.
- With 300 direct message channels and a dozen of "big" multi-user
  channels (#All, #News, #R&D, etc.), it takes at least 2 seconds.

The RPC 'channel_fetch_preview' is very slow. After some investigating,
it looks like 80% of the time takes place during message_format
postprocess when updating messages based on notifications:

Specification
=============

Now, we avoid to make query for each message.
And for attachment's message, we check attachment access rules and
search object only if the message has an attachment.

closes odoo/odoo#34863

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 27b80085
No related branches found
No related tags found
No related merge requests found
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