cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alphyon_IT
New Member

Very poor performance using Patch(collection, tabel) when insert into SQL Server

Hi everybody, we are experiencing a strange behaviour.

When we update a collection already saved stored on a Azure SQL Server Table we have to wait for a couple of seconds in order to get the records stored correctly, when we have to insert, instead, the same amount of data (18 records made up of smallints and ints mostly, about 20 columns), we have to wait for 30 seconds (absolutely not acceptable).

 

 

[...]

ClearCollect(colRigheControlliPreSave;Defaults(MT_ControlliRighe));;

        Clear(colRowsCheckPreSave);;

        ForAll(colRowsCheckPre; 

            Collect(

                colRowsCheckPreSave;

                {

                    IDHeaderControl: IDCurrenteHeaderControle;

                    IDCheck: ThisRecord.IDCheck;

                    Sort: ThisRecord.Sort;

                    SelectionType: ThisRecord.SelectionType;

                    CheckRegistered: 0;

                    [...]

                }

            )

        );;

        Patch(MT_CheckRows; colRowsCheckPreSave);; 

    );;

 

 

 

 

0 REPLIES 0

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,711)