Currently on product pages the extension carries out a category load for every category that the product is in, this results in a database read each time. On sites that have a lot of categorisation this means a large number of queries are carried out for something that could be achieved in a single query.
This pull request replaces the category load with a category collection loading categories by id, this will always use a single query to load the product categories.
Currently on product pages the extension carries out a category load for every category that the product is in, this results in a database read each time. On sites that have a lot of categorisation this means a large number of queries are carried out for something that could be achieved in a single query.
This pull request replaces the category load with a category collection loading categories by id, this will always use a single query to load the product categories.