Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance problems with 100k+ entries #30

Closed
esped-dfds opened this issue Jul 2, 2020 · 0 comments · Fixed by #35
Closed

Performance problems with 100k+ entries #30

esped-dfds opened this issue Jul 2, 2020 · 0 comments · Fixed by #35

Comments

@esped-dfds
Copy link

We are trying to build our website with gatsby using gatsby-source-contentful. I've identified a performance problem in the way links are looked up. By using an array as datastructure and doing liniar search, it takes 20-30 mins extra to resolve links.

return findNormalizableLinkInArray(allEntries, predicate);

In my POC I put all the entries in an object with id as key which allowed it to resolve the links immediately.

Looking at the code today it seems like it can support entries and assets with the same id. I don't know if this is a use case that needs to be supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant