Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Processing hangs after updating the gem #157

Open
brtdwchtr opened this issue Jul 18, 2019 · 3 comments
Open

Processing hangs after updating the gem #157

brtdwchtr opened this issue Jul 18, 2019 · 3 comments

Comments

@brtdwchtr
Copy link
Contributor

In one of our projects I updated the contentful_middleman gem to use the latest version, coming from the "dl/upgrade-to-v4" branch.

After this update, running the middleman contentful command with anything higher than "max_include_resolution_depth: 1"
in the config causes processing to hang after a few seconds.

I've tried playing with the all_entries_page_size, but that doesn't seem to help.

@dlitvakb
Copy link
Contributor

Hey @brtdwchtr,

This may be related to how your content model is done, it looks like you have multiple circular relationships.

Something that may make it go much faster is by enabling reuse_entries: true in the client options. This should make the SDK not re-create already hydrated entries.

Hope this helps,

Cheers

@brtdwchtr
Copy link
Contributor Author

thanks for the quick reply @dlitvakb

Thing is, I had issues with circular relationships before, but limiting the max depth to 2 and setting reuse_entries to true fixed it at the time and haven't had any problems since.

do you think any specific change in the latest releases has increased the vulnerability towards probs with circular relationships? This can't just be a performance problem, right?

@dlitvakb
Copy link
Contributor

Hey @brtdwchtr ,

This hasn't been changed in almost a year, so I don't really know what may be going on, have you considered setting the gem to use the latest release instead of the one in the branch?

Using 'contentful_middleman', '~> 4.0' should do the trick.

Cheers

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

No branches or pull requests

2 participants