summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/transcoder.js
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2016-02-23 15:44:04 +0100
committerOlivier Dony <odo@openerp.com>2016-02-26 18:56:49 +0100
commitc5b879bfd29a972d8b8f8fb95038694ac8bdc485 (patch)
tree6cb5be99403f2e329757537717691c3fee8b658a /addons/web_editor/static/src/js/transcoder.js
parentde9342fac47c11489cab7dec1d0927a140c6e9ba (diff)
[FIX] crm.opportunity.report: query performance
Using a subselect is more efficient than constructing a complete temporary table of all messages, and then joining them. This way only messages or relevant opportunities are used, as most of the time the report is accessed for a specific subset of opportunities (by date, salesman, stage, etc.). The query planner can then use the dedicated index to quickly access the corresponding messages. On a sample database with 1 million crm.lead entries and 10 million mail.message entries this brings the time for a typical read_group call on crm.opportunity.report down from 300s to 500ms (600x faster)
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
0 files changed, 0 insertions, 0 deletions