we are currently developing a process, which triggers a microservice that generates objects out of all instances of a specific documenttype.
We are using a query REST call to get all of the documents.
The problem is that we need a value of an indexfield of its parent. The only way we know of is to make a REST Call to the given uri in the "parents" field and search in the response for the required field-value pair.
For about 25.000 documents with the same parent, our process takes a little over an hour to finish. If we reduce the number of REST Calls to get the parent to one (since it's the same for all of them) this process takes about 3 minutes.
Is there a way we can figure out whether the parents of two or more objects are the same? This way we could cache the results in a map and reduce the number of REST Calls significantly. (in this example 25.000 vs 1)
Thanks for your help.