Hi, I've got a patch function that updates a single field in some items in the CDS.
Currently, its I'm told it's too slow with about 16 items being patched.
This is the code:
ForAll(
Categories_Gallery.AllItems,
ForAll(Items_Gallery.AllItems,
Patch(
[@Items],
LookUp([@Items], Name = ItemNameLbl.Text),
{
Inspection_result: InspectionResultRadio.Selected.Value
}
);
)
);
The items are inside a gallery, which is inside of a gallery of categories.
It gets every item from its gallery and then patches it. Right now, it takes about 5 seconds to do this and then navigate away from the screen.
Is there any way to make this faster? I was looking at concurrent() to split up the patch but the gallery has a variable amount of categories and items in it, so I don't think that would work.