Closed darena-antonw closed 1 month ago
MIght have to be improved in ScopedNode
Timeboxed for 4 hours for research
Findings:
Proposed actions:
Closed in favour of https://github.com/FirelyTeam/firely-net-sdk/issues/2846. We will address this properly in SDK 6
Hello, wanted to report a performance issue
the containing bundle contains ~8000 observation resources that we'd like to insert as part of a batch operation
validating this bundle takes over a minute.
I've done some investigation and basically the gist is:
ReferencedInstanceValidator
will try to find the referenced resource locally within the bundle looping all elements.all of this happens for each entry for each reference, so by the end this logic runs more than x10 million times...
Anything you can suggest as a short term solution or a way to disable this?
Also (I didn't dig far enough) why is the validator trying to find the referenced resource? what will it do with it when it finds it?
sample.json