odoo/odoo — pull request #3766 by tmotyl (2014-11-20 10:14:53+00:00)
Title: [PERF] Make ecommerce category page faster

Products variants related to one product template should have the same public categories, so it doesn't make sense to restrict domain on variant categories instead of product.template categories.

This change makes requests for category page 17 times faster (2.1min =>7.24sec) for shop with thousands of products and hundreds variants per product.