sql server - Improve Data Factory stored procedure activity execution time with the Azure IR - Stack Overflow

I have an ADF pipeline, that logs startendfailures via a stored procedure activity. It calls 4 differ

I have an ADF pipeline, that logs start/end/failures via a stored procedure activity. It calls 4 different stored procedures, passing parameters, to then either insert or update a logging table so we can store the StartDateTime, EndDateTime and a Status (failed/passed).

We have been seeing instances of this activity, taking in the region of 2-3minutes, yet 'normally' it executes within < 10 seconds.

It is using the Azure Integration Runtime, and I have re-created a dummy pipeline to test, as you can see from the screenshot, one of the activities took 1 minute 45 seconds.

Is there anyway that I can workaround this issue?

I have an ADF pipeline, that logs start/end/failures via a stored procedure activity. It calls 4 different stored procedures, passing parameters, to then either insert or update a logging table so we can store the StartDateTime, EndDateTime and a Status (failed/passed).

We have been seeing instances of this activity, taking in the region of 2-3minutes, yet 'normally' it executes within < 10 seconds.

It is using the Azure Integration Runtime, and I have re-created a dummy pipeline to test, as you can see from the screenshot, one of the activities took 1 minute 45 seconds.

Is there anyway that I can workaround this issue?

Share Improve this question edited Mar 6 at 17:56 marc_s 757k184 gold badges1.4k silver badges1.5k bronze badges asked Mar 6 at 15:01 nowYouSeeMenowYouSeeMe 1,0176 gold badges14 silver badges22 bronze badges 4
  • Is IR running in the same region as the targeted SQL Server? (i.e.: could there be communication problems in the network layer?) What does the stored procedure actually do? Have you tried using examining the stored procedure's cached query plan to see if the performance may be due to poor join performance? (i.e.: if index statistics are way off query planner may choose the wrong join types for some operations.) – AlwaysLearning Commented Mar 6 at 21:52
  • So both are running in the same region, which is UK South. I did check the stored procedures query plan, but the stored proc is literally just doing either an INSERT or an UPDATE to the table. – nowYouSeeMe Commented Mar 7 at 15:44
  • As you said the stored procedure is literally just doing either an INSERT or an UPDATE to the table so you need to Run the stored procedure directly in your SQL Server to determine its execution time without ADF and compare the execution time. – Pratik Lad Commented Mar 11 at 12:13
  • Did the activity execute in <10 seconds but it just queued nearly 1m 35 secs? – Geezer Commented Mar 11 at 13:37
Add a comment  | 

1 Answer 1

Reset to default 0

As the Stored Procedure is just doing INSERT and UPDATE, I have created similar procedure and used two types of Integration Runtime to compare the execution time.

In Case of Azure Integration Runtime ,Tuning the number of cores or choosing a correct memory-optimized configuration can affect performance.
Below setup can be done while creating Azure Integration Runtime:

Now after running the pipelines with two different IRs we are getting significance difference in execution time.

1. AutoResolveIntegrationRuntime
2. Azure Integration Runtime

Also Inside Pipeline Setting, Concurrency can be increased to improve the pipeline performance.

Kindly Go through the attached Microsoft Document for more reference:

Resource Allocation and Performance Tuning

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744967677a4603781.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信