diff options
| author | Romain Derie <rde@odoo.com> | 2020-03-13 15:16:04 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2020-03-19 15:37:44 +0000 |
| commit | f95af92ae3bc6bd7d7d4a9e09042bcca9f35ffec (patch) | |
| tree | c7450ce70b88a7b0243206775b826c3afcb42d32 /addons/web/static/src/js/fields | |
| parent | 96486de1c140511aa6b09fa37d2b911c822d8c3d (diff) | |
[FIX] website: perf - prefetch every website menus in one go
Without this commit, the website menus would not be prefetch all in once.
Thus, every call to `submenu` template (called recursively) would do SQL
queries. One when accessing website.menu_id, then for every access on menu's
child_ids. It would also make an extra request for groups since the menus have
an ir.rule for that.
with following structure, 13 SQL queries will be avoided, regardless if there is
a group or not on the menus:
- Top menu
- Home
- Contact us
- Sub Contact us
- Sub Sub Contact us
Related to #47257
task-2211013
X-original-commit: 7fb016f9966bb5e2289ba17eacafb8887626514e
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions
