-
Notifications
You must be signed in to change notification settings - Fork 9
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
Testing with a real Plone site #133
Comments
i tried to import data from a small plone site (415 items in catalog), and it seems to work very well with the recursion-mode. I have some problems with the pages created from the starter. I'll open some separated issues for this. |
ok, the only problem in the starter, is that here I don't have anything (i don't have a docs folder, so the query returns nothing). Commenting that line, everything works. |
Yes currently, the starter is configured to use it's own docs as a source. So here, at the index page, the plugin displays docs/index.md. This is not an error but it's cause of the specific config we have for the gatsby-site for our use. |
Another try with 30000 objects and ~15gb of blobs: failed. After a few hours, I run out of memory. |
That was to be expected.
@KyleAMathews Would you be able to give us some generic tips on how to optimize source plugin memory usage?
…On 22 Jul 2018, 11.48 +0300, Andrea Cecchi ***@***.***>, wrote:
Another try with 30000 objects and ~15gb of blobs: failed.
After a few hours, I run out of memory.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
As we delegate file nodes to gatsby-source-filesystem, I wonder, how could it be that blobs still way memory? Just JSON should not take that much... |
just for reference, this is the traceback:
|
I haven't much explored optimization and handling such huge sites yet, I'll do some research and get back. cc @m-allanson @pieh insights appreciated |
This might be something we currently are actually working on (but might not be) - see gatsbyjs/gatsby#6611 and gatsbyjs/gatsby#6656 Nodes itself aren't taking that much memory - but serialization is problematic when there is a lot of nodes. There were some fixes recently published already, so try updating gatsby to beta-55 |
@pieh Thanks for the update. @cekk @ajayns I believe that for now it's good enough for us to acknowledge that with large amount of nodes, memory issues are expected, and target for smaller sites instead, until it is sure that gatsby itself should scale. Until that, instead of optimizing too early, we probably should look into using gatsby cache #136 to make updating sites with 1-10k pages practical. |
@datakurre i agree. Do we need more tests or can close this issue? |
@cekk It was a great stress test and found real issues. Let's close this and run more tests once we have the starter. I hope to have implemented caching support by then. |
@cekk Do mention any issues you have here! I'm also checking out each feature implemented.
This would help us do any minor fixes and be ready to use the plugin with our proposed gatsby-starter-plone.
The text was updated successfully, but these errors were encountered: