Friday, February 11, 2022
2 changes · master
Enhancements to existing features
Website pages now avoid extra background requests when an administrator or publisher is signed in. This reduces page overhead and should make browsing and editing the website feel faster and more efficient.
Original PR description
This improvement remove 12 requests on all page when the user is connected with published access.
The eSignature app now identifies templates without searching through the large attachment storage area. This should make template lookups more efficient and avoid unnecessary permission checks behind the scenes.
Original PR description
Solution by IEL, explanation from ODO: `sign.template` uses `attachment_id` as its `_rec_name`, which means that searching for a template requires searching through the whole `ir.attachment` table. That's bad for several reasons: - `ir.attachment` is an internal low-level table (as indicated by the `ir.` prefix) and shouldn't be accessed like a first-party business model - `ir.attachment` is a huge table that represents the entire filestore, so searching through it is naturally slow, it's meant to be referenced by `res_model`, `res_id` keys, not searched cross-model - `ir.attachment` has a complicated permission system, so not only is searching expensive, it also requires some costly post-processing for filtering results task-2677771