Need help to design & create records for below requirement,
My Approach:
Could you please suggest another approach to avoid so many DB calls. Is it possible to create separate record for each child table and link in the parent record.
Thanks,
Hemant.
Discussion posts and replies are publicly visible
Not sure you can avoid the multiple DB calls unfortunately unless you can guarantee that the number of rows for each of the related record is under 10 for a single parent record. In order for this to work, you also need to ensure that the total amount of rows in the child tables will be under 2M. That's if you gp the Record Type route.
The only other way is to do nested data types, just need to be careful when querying the 1-n nested CDT fields that you're retrieving them for a single entity and not a list of parents.