Slow tfdquery.Append

Asked

Viewed 117 times

0

Slow append. Tfdquery when applying value in a field with SGDB in the cloud, consumes 144 thousandths of seconds by changing the Tfdquery.Autocalcfields Property to false, this time reaches 071 thousandths of seconds. Using SGDB on the local network, the time is 004 milliseconds. Example: qry. Append; qryCODITEM.Asinteger := 1; //Here it gets slow with SGDB in the cloud.

I believe that the firedac goes to the SGDB every field change. Has anyone ever had the same scenario? Can you improve?

  • And if instead of putting in Append you make a Insert in qry, add the value to the field and then Post?

  • I changed from Append to Insert and the performance was the same. The post I call after editing the fields, I put the example only until the part where it is slow. Thank you.

1 answer

0

Problem solved. There is the linked Ondatachange event in Tdatasource.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.