summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2020-03-13 15:16:04 +0000
committerRomain Derie <rde@odoo.com>2020-03-19 15:37:44 +0000
commitf95af92ae3bc6bd7d7d4a9e09042bcca9f35ffec (patch)
treec7450ce70b88a7b0243206775b826c3afcb42d32 /addons/web/static/src
parent96486de1c140511aa6b09fa37d2b911c822d8c3d (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')
0 files changed, 0 insertions, 0 deletions