Performance issue with hundreds of thumbs on S3 #253
Labels
Attn: Critical
This issue or PR is critical and should be rushed into a new release ASAP.
State: Rejected
This item has been rejected as being invalid or otherwise not desired by maintainers.
I have a problem with performance when requesting around 300 thumbnails (images are stored in S3, and I'm using the s3 cache resolver):
Images are uploaded via an API, on upload I generate the necessary thumbnails with LiipImagine.
Images are then displayed in an album with this filter:
photo_path | imagine_filter('thumb_200x200')
It takes a few minutes to display the page even though thumbnails are already created.
OTOH I have an API call that returns all the thumbnails of the album:
$imagemanagerResponse = $this->container
->get('liip_imagine.controller')
->filterAction(
$this->getRequest(),
$myPhoto->getName(), // original image you want to apply a filter to
'thumb_200x200' // filter defined in config.yml
);
This api call takes about a minute too.
I have tested modifying getBrowserPath so that it doesn't check for $objectPath but performance is still very poor.
I guess the only way of really speeding it up would be to save each thumbnail path on the DDBB, and then just get this field on my src attribute. Is that correct?
The text was updated successfully, but these errors were encountered: