gatsby image generation taking too much time for only 2k images #27553
Replies: 4 comments 1 reply
-
p.s i will have almost 12k images |
Beta Was this translation helpful? Give feedback.
-
Well, you have to at least once generate the images, then they are mostly cached (locally). But for builds you'll still generate them every time. If you plan on having so many images you should look into using e.g. https://www.gatsbyjs.com/cloud/ which can speed up the image generation or a specialized service like Cloudinary. Image processing is time consuming, with those many images you'll need to take some measures to scale this. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot. so nothing wrong here, it is how it works ? if i'm going to use that much amount of images, its going to take 20-30 minutes on first build ? |
Beta Was this translation helpful? Give feedback.
-
@yasirhaleem it's still early days and we haven't announced this yet but you could try For builds you'll still have to wait 20-30 minutes. If you're using gatsyby-cloud builds will be faster as we have some optimizations in place. |
Beta Was this translation helpful? Give feedback.
-
Hi,
i have below query, if i add
image { childImageSharp { fixed(width: 380, height: 380, quality: 100) { src } } }
to first query it takes too much time, i would have this in almost all template i have, this means it will take hours to develop, someone told me that doesn't matter how much queries you use, images are cached but in my case, it taking too much longer
Beta Was this translation helpful? Give feedback.
All reactions