Hi,
We have a project with a lot of assortments. Currently there are 5000, but we may end up having just 900. The reason for so many assortments is that the customer has 2 main assortments (public + US West coast customer AND East coast customers) and then some customers will have their own assortments.
We can't move away from Assortments, and what we're seeing are 2 things:
- When it needs to cache the assortments (i.e. when cache is invalid and/or on first page load) it's doing 1 database call for each record
I am attaching the homepage with "debug=true" in the request where you can tell the hundreds of individual sql queries - one for each assortment (this was taken with <900 assortments)
https://www.screencast.com/t/MdsuU0ktA
Can this be optimized and only do 1 database call? We'd expect performance to be better in the end
- Due to the number of assortments, it's noticeable when a request is actually doing the db requests to cache the assortments. Since cache expires after 10min, we're constantly experiencing this.
How could this be improved too?
This is impacting a live website and the attached is from our UAT site running in 9.13.3 (now updated to 9.13.4)
Best Regards,
Nuno Aguiar