Forum
collections list page is slow
I have about 20-30 entries in a collection, and below is my code.
$data = perch_collection('Celebrities', [
'skip-template' => true,
'sort-order' =>'DESC'
]);
it is taking about 10-12 secs for the page to load. It use to load fast when I had fewer collections. Please see debug screenshot here
https://www.dropbox.com/s/go0lzke7aiw3ilj/Screen%20Shot%202016-08-15%20at%208.59.50%20PM.png?dl=0
How can I speed it up?
We need to see the template you are using and your Diagnostics Report with each post to the forum.
Sorry, please find below.
this is how my template page looks like
That doesn't look like your template. Can we see your template please?
Oh, I am sorry. here you go
The debug shows the collection query executing quite quickly - the delay looks like it's on your query of the
language
table.If you want to get some more timing points, you can do this:
Drew,
thank you so very much for staying with me. this is causing lot of problems. We never had that issue until recently when client started putting in all the live data. We are so close to tight deadline for launching it :-(
anyway, here is the screenshot of debug info
https://snag.gy/75ceJo.jpg
Appreciate all your help
Actually, I may have some good news.
after looking at the times I realize, that it was trying to parse collection template and then doing the loop thing. so I created a new template for listing only, and it seems to be fast on one of the collection.
I am now trying another one, I am sure it will work out, will post results once I have them.
Kool.
Something worth knowing. I could speed up both slow pages by using a special template for listing the collection items.
By using 'skip-template', it was getting all details for each collection item, and that was causing too much time, since each of my collection has about 150-300 nested images,
If I use template, somehow it is only getting the required details and speed is back up to what we love perch for :-)
thank you, and sorry for putting up with me