perf(gatsby-source-contentful): speed up resolving of huge spaces (#25954)
perf(gatsby-source-contentful): speed up resolving of huge spaces (#25954)

closes #25464
gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby