summaryrefslogtreecommitdiff
path: root/addons/note/note_view.xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2015-12-10 18:43:12 +0100
committerOlivier Dony <odo@openerp.com>2015-12-10 18:43:17 +0100
commit3d32e9966500290f35e6edfebf97b9a60a1fc495 (patch)
treeb2dd76598deffcd3a995d68aa1a3a8cbb7cd6d1a /addons/note/note_view.xml
parent4432639fb552f2008b920f0d37d2c659129eadcb (diff)
[FIX] mail.thread: optimize lookup of res.users by email
Searching on res.partners with domain [('user_ids' , '!=', False)] will currently be translated into a huge "ID IN <...>" query, with the IDs of all existing users. On a database with a lot of users, this can be measured in seconds (e.g. 3-4 seconds with 500k+ users), leading to significant delays in email delivery. Using a direct lookup in res.users is more direct and faster.
Diffstat (limited to 'addons/note/note_view.xml')
0 files changed, 0 insertions, 0 deletions