Replies: 1 comment
-
After a little research and testing, I found out that Storage::url('') from a S3 bucket takes (much) time. Can this be due to a connection with the S3 bucket? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I have an activity model where I eager load the images attached with this media library. With 30 items, this takes around 350ms. When mapping over this query, I create a new property where I map over the eager loaded images and get the url. For the api response, i only need the url's.
But after executing this, the time rises to 1 or even 1.5 seconds. Normally, there are 1-3 images per activity.
I also tried a custom model with attributes, but that makes no difference.
The data will be in a api JSON response to a javascript/app frontend.
Did I do something wrong or is there another way?
Thanks for the answers!
Beta Was this translation helpful? Give feedback.
All reactions