how to consult only the first product variation in the archive pages
-
Hello there
I have a problem with a web page that has more than 200 variable products, which each have more than 250 product variations, the problem is performance, the page load times are high.
I have partially solved the problem optimizing the database as best I can, configuring the server to its maximum performance and using cache systems to save the pages, but I have conflict in the store archive pages, categories and filters, it is very complicated for my caching these pages because the server doesn’t give me enough to save so much information, it suddenly ends the execution processes and I can’t even query the pages.
I have already verified that the problem is the amount of product variations since in pages with simple products the problem does not appear, I found that if I deactivate the prices of the products so as not to show them, the performance of the server allows me to consult these pages.
So what I have been trying is to find a way to limit the requests for the products to databases to get only the first product variation and only show the price of that variation, but I have not been able to carry it out.
That is why I am looking for your help to know if it is possible to do it, limit the queries to the product database so that only the first product variation returns and show the prices of that variation in the archive pages.
Thank you very much in advance for reading my query and I hope I can count on your support.
Greetings
- The topic ‘how to consult only the first product variation in the archive pages’ is closed to new replies.