diff options
| author | Jeremy Kersten <jke@odoo.com> | 2020-03-13 15:16:55 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2020-03-19 15:37:48 +0000 |
| commit | 89bbf76c445e7a2b6d1c1066cdd9910fef559fe6 (patch) | |
| tree | 27d63886a03675f222fc45546f2f91c8fd420d6d /addons/web/static/src | |
| parent | b98d9c968cb7147af6c9042f0f0639d41b565fd7 (diff) | |
[FIX] website: perf - get most specific in SQL
Before this commit, we would get all the pages for the requested URL then
filter to get the most specific.
This can just be done in SQL by sorting website_id desc so the specific are
returned first.
Note that this will respect 41897f0dbab.
This will avoid having to prefetch the generic page when it is useless.
Related to #47257
task-2211013
X-original-commit: b31294592a80d9e55f887f0122cc01225b64966c
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
