I have two classes:
Class Example.Parent Extends %PersistentProperty
Child Extends %Persistent
A parent can have many children. I want to query for parents and add children for each parent to my result.
Here is the code that I query with:
In the QueryParents method, while iterating through the result set, I trigger a new query for each parent to find the children. And at the end I return a JSON structure. Now, this works but it is not going to scale well when there are many records in the database.
Is there a better approach to doing this?
I have version 2017.2 installed.


.png)

.png)


