Hi,
I am having a problem updating/saving of multiple entities of two related (FK-PK) types, however, before describing it, I have gotten it to work by saving each entity individually first rather than in bulk as a collection of such entity.
So, before I attempt to understand the issue, let me ask, is there a performance penalty to do a DML operation in a loop on multiple entities individually, or should I add them to the respective collection type, then do SaveMulti()?
Loop:
Modify/Create entity
Save()
or
Loop:
Modify/Create entity
Add entity to collection
End Loop
Collection.SaveMulti()