diff options
| author | Nicolas Seinlet <nse@openerp.com> | 2018-12-04 11:20:11 +0000 |
|---|---|---|
| committer | Nicolas Seinlet <nse@openerp.com> | 2018-12-04 11:30:14 +0000 |
| commit | 71af1a710ab6892d09156e4a6c61c63820532dee (patch) | |
| tree | 58e0f88b42c0a7d8a4c830282d5a18770cd1cd3d /odoo/addons/base/tests/test_float.py | |
| parent | 16e7a4b4c74f2a391c033d3c732f542cb56e768d (diff) | |
[IMP] mail: message route speed
When using limit=1, PostgreSQL sometimes use sub-optimal plan like
"Index Scan Backward using xxx". To avoid this, adding a fake sort
will make PostgreSQL to use the same plan as without limit, and in
this particular case, the index on message_id
closes odoo/odoo#29278
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Diffstat (limited to 'odoo/addons/base/tests/test_float.py')
0 files changed, 0 insertions, 0 deletions
