First thank You for this nice module!
I am writing to complain/ask for support or suggestions regarding performance issues with flickr random photos module.
In our project we use the random photos block in right sidebar on most of the pages. I have noticed the page load difference for the pages with this block compared to pages without the block.
Here are some statistics for a single page with different settings:
With flickr random photos block and photo count set to 10: Page execution time was 5590.34 ms.
With flickr random photos block and photo count set to 1: Page execution time was 1573.88 ms.
With flickr random photos block and photo count set to 30: Page execution time was 16373.1 ms.
Without the block: Page execution time was 1182.01 ms.

In our case it is enough to have 10 photos. But 4 seconds to load the block is terrible!
Do You have any suggestions what could be done here? Is it possible to display this block after the page has loaded using ajax? Any other soulution?
I am attaching the callgraph for the worst case- 30 photos in the block.
Great thanks for your help!
Krisjanis

CommentFileSizeAuthor
callgraph._30_flickr_random_photos.png381.86 KBkrishinsh

Comments

lolandese’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry for the late reply.

One thing to determine is if it is the query being slow (because it's random) or it's just the loading of the images themselves from Flickr (no solution in that case). Can you create a block with the same number of images but not being random and see if it loads as slow? Please let me know.

Thanks.

lolandese’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing for lack of activity.