Needs work
Project:
Single Content Sync
Version:
1.4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Jan 2025 at 15:03 UTC
Updated:
11 Nov 2026 at 08:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nginex commentedComment #5
supreetam09 commentedThis is something we also needed. In our project, there are some content, for which the dependency tree is so huge that the Export page throws 500 PHP out-of-memory error, even with setting memory_limit to -1
We implemented the code from the MR. It introduces a new settings key which will be used to identify entity types that will be omitted from the export list for referenced entities. We had to exclude all node entity type references from content (other entity reference dependencies are still there) - and Export page started opening fine.
Its now exporting importing partially and with the settings, we can control it.
Although I understand that this is not perfect. We can further fine tune the control. Currently its entity level control - but I can think of more ways like bundle level control or hierarchy level control (like 1st child node reference will be exported but another node referenced to the 1st child i.e. child's child won't be exported).
For now, I am adding a starting point.
Let me know your thoughts!
Comment #6
nginex commentedThanks for the patch, I will check and test it when I get some time. Meanwhile you can also test similar issue but with different solution here
https://www.drupal.org/project/single_content_sync/issues/3511539#commen...
Comment #7
supreetam09 commentedUnfortunately the patch from MR does not apply on current stable version 1.4.10 as there's been too many changes in 1.4.x. I am adding a patch only for 1.4.10 release.
Consider the MR for the dev branch.
Comment #8
nginex commentedI'm planning to create 1.4.11 during a week, so already merged a few issues
Comment #9
bhagyalakshmi commentedStill the patch does not apply on current stable version 1.4.11. I am getting the below error while applying this patch. Any one can help me on which version it will apply.
Comment #10
bhagyalakshmi commentedI can able to add patch on 1.4.10 version.

I have skipped all the referenced entity types except "content" in advanced settings. But, I am still getting timeout error.
settings:
Error:

In my application, we have a content with more paragraph components with multiple fields.
Using this patch we can add settings in global level, is there any way to exclude the components on content level while exporting.
please advise.
Comment #11
nginex commentedI improved patch in #3511539: Recursion takes too much memory compared to earlier versions (1.4.6 or earlier), would be nice to test it
I think the main performance issue is in related node menu Link, embedded entities from formatted text, embedded entities from link fields.
The patch above should handle it for complex sites.
Comment #12
namisha jadhav commentedI have created a PR from https://git.drupalcode.org/project/single_content_sync/-/merge_requests/... to make it compatible with 1.4.14 version. This PR is to allow partially export content.
Comment #13
namisha jadhav commentedComment #14
jannakha commentedRecent release has introduced merge conflicts.
Please resolve merge errors.
Comment #15
hemuvyas97 commentedRe-rolled the patch from #13 for version 1.4.19.
Comment #16
hemuvyas97 commentedUpdated patch for the version 1.4.19.