diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-07-13 19:19:11 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-07-13 19:19:11 +0200 |
| commit | 7930c3f86ebf079167437f314dcdb8851aa9e563 (patch) | |
| tree | 2cac2f1fc4d81c72960158e8a2e5b9fa7b280f97 /addons/web/static/src/xml/base_common.xml | |
| parent | 9b77d76e71a55bfc3caba6377cee6370941c5e65 (diff) | |
[IMP] base: ir.ui.view inherit search during module update
During module update, we should only consider views of already
loaded modules. This filter is done by searching on xmlids of views.
We should also search for explicit view ids (current module is not yet
marked as loaded)
However, by doing this `OR` condition, the generated query is not
optimal and forbid postgresql to use the composite index
`ir_model_data_model_res_id_index` on `ir_model_data` table.
This is a performance issue for databases with a lot of ir_model_data rows.
Use 2 quicker search() to avoid this problem.
This only affect the module update. Normal view loading is unchanged.
Diffstat (limited to 'addons/web/static/src/xml/base_common.xml')
0 files changed, 0 insertions, 0 deletions
