diff options
| author | Xavier Morel <xmo@odoo.com> | 2015-03-27 16:42:08 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2015-04-10 18:23:32 +0200 |
| commit | aa25670c6934679902caa027a1aea00cd049d7bb (patch) | |
| tree | 75fdc7252b7fb4683e383a844610c851ffb37967 /addons/analytic_user_function | |
| parent | bc33b8dd04aea344a1e92a3cf2e06e849a9e5ff8 (diff) | |
[FIX] forum: optimize vote metadata queries
Saves 2 requests per post, aka 20 requests on a full page (89 -> 68):
* don't create a new sudoed env and recordset for each post, create a
single one so prefetch can work
* don't do unnecessary sudoed access (.parent_id.create_uid without
reading any field)
* temp variables in template seems to save a few queries, not sure why
There's still a linear growth of requests wrt posts in the
page (single-post page has 56 queries), but it's a bit less terrible.
Diffstat (limited to 'addons/analytic_user_function')
0 files changed, 0 insertions, 0 deletions
