gatsby-source-strapi icon indicating copy to clipboard operation
gatsby-source-strapi copied to clipboard

Fetching data takes 10 mins

Open munawar-js opened this issue 4 years ago • 0 comments

Hi @lauriejim,

As per our conversation on twitter via stackrole, am creating this issue.

Context

we have around 72 posts with 2 images each. Am suspecting parsing this info is taking a lot of time.

Local: 480s Production: 58s

We do not have a filter on relations, but on the content type field Status

allStrapixxxx (
    sort: {order: DESC, fields: date}, 
    filter: {Status: {eq: "published"}}
) {
  Image {
    childImageSharp {
       fluid(maxWidth: 416, srcSetBreakpoints: [832]) {
         ...GatsbyImageSharpFluid_withWebp_tracedSVG
       }
    }
  }
}

Thank you, looking forward to hearing from you :)

munawar-js avatar Oct 06 '20 15:10 munawar-js