summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session_instance.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2016-04-27 12:08:19 +0200
committerGéry Debongnie <ged@odoo.com>2016-04-27 17:00:20 +0200
commit7922370f1252a2482a8a77f91babb88145aff96c (patch)
tree153040e3a58b48840ef7f633630392a303854b95 /addons/web/static/src/js/framework/session_instance.js
parent7d25dd56180ec60d9167f0c975d95b261a08223d (diff)
[FIX] mail: fix performance issue with large channels
When a user is subscribed to a channel with many messages, the discuss initial rpc /mail/client_action can become very slow (in production, the rpc took > 20s when subscribed to the Community mailing list). This is due to the query in _get_message_unread, counting the number of unread messages. This commit adds an index on the relation mail_channel_partner, this allows postgres to perform only index lookups, and speeds up the query by 2 order of magnitudes.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions