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 page is loaded. - After this commit: Product ids list for `attr_valid` is now built with a search domain on `product.attribute.value` model: this should improve load speed by a lot (about x35 times faster).
- Loading branch information