Hello!
There is a simple request:
SELECT ppv.id, ppv.property_id, ppv.value_id, ppv.text, p.edit_price, p.title, p.type, p.view, p.default, p.prefix, p.suffix FROM vqbfa_properties AS p LEFT JOIN vqbfa_product_properties_values AS ppv ON ppv.property_id=p.id WHERE p.published=1 GROUP BY p.id ORDER BY p.ordering; its EXPLAIN - http://clip2net.com/s/i7vF6C profiling - http://clip2net.com/s/i7vGaq
as you can see, its execution takes 244.3 ms. I can’t understand why it takes so long. The corresponding indices and links are spelled out.
p.edit_price, p.title, p.type, p.view, p.default, p.prefix, p.suffixfrom this request, leave onlyp.id, and in the code take property details. Well, then the optimization option is caching. the request is still pseudo-static, changes in values and even more so in properties do not occur so often. - Yura Ivanov