Stored procedure running slower through DI

A stored procedure completed with in 4 minutes in db engine is running more than 20 minutes to finish through DI job.
How to tune the stored procedure calls for better performance

Raj


rajbodi (BOB member since 2008-03-17)

How is the procedure being called? Is it a function being called in a mapping? Is it a procedure being called in a script?


djlaplant :us: (BOB member since 2004-04-03)

Procedure is being called in script


rajbodi (BOB member since 2008-03-17)

DI puts a transaction around the DB calls, see https://bobj-board.org/t/102747

If this is SQL, either put into the SP as the first item (before it does anything to manipulate data)…

SET IMPLICIT_TRANSACTIONS OFF

…or in the script within the sql function.


HuwD :uk: (BOB member since 2007-04-19)