Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[14.0][IMP] Query performance for shop route in website_sale_filter_p…
…roduct_brand Qweb key `attr_valid` stores a list of product ids, which is exposed to qContext - Before this commit: Product ids list for `attr_valid` is built with ORM `mapped()`, which is very slow if you have a lot of products and attributes for products. (Tested with 15'000 products and around 500 values for different attributes) Depending on hardware, this might cause some annoying delay before the "/shop" route is loaded, as this single query might take several seconds to be executed in such situations. - After this commit: Product ids list for `attr_valid` is now built with a search domain on `product.attribute.value` model: this will improve loading time by a lot (about x35 times faster) for "/shop" route compared to ORM `mapped()` execution time.
- Loading branch information