When I have a document with ReferenceMany "Links", Doctrine PHPCR always loads all those referenced documents, even if I just load the main document. This is obviously very bad for performance.
is a reproducible use-case. Just ran it twice and you'll see that in the second run, there is
- one GET request for the initial documents
- a REPORT request for every referenced document to resolve the UUID to a path
- a POST request for multi-get-ing all the referenced documents
See also this charles-screenshot
I have no idea where to look at to fix this, so any help would be very appreciated