Hello Peter,
I wanted to circle back on this thread, as there have been some recent developments.
The primary issue that I believe you were running into was (as you suspected) related to the performance impacts of Fedora4 automatically generating thousands of *direct* children off of the same parent resource when creating blanknodes. This issue is being addressed with the following ticket and should be completed early next week.
Testing against a preliminary fix to FCREPO-1258, I was still running into the errors that you noted with the integration test offered in:
It turns out that the test itself, is exhausting socket resources which causes the failure. I therefore ran an analogous test with 'curl' looping on the creation of new resources that include the mods-rdf that you provided. Here is the script that I ran (where "mods.ttl" is your file):
=================
time for x in {0..50000}; do echo "--- $x"; curl -s -XPOST --data-binary @mods.ttl -H"Content-Type: text/turtle" localhost:8080/fcrepo/rest/test/collection0; done
=================
After the creation of about 40,000 resources (which amounts to 40,000 resources plus 520,000 blanknodes) performance began to degrade, but continues without failure. I believe that is an issue completely unrelated to blanknode creation, and is being tracked here:
In short, once FCREPO-1258 is resolved, I hope the blanknode performance issue you were seeing will have been improved if not resolved. I look forward to your feedback.
Regards,
Andrew