Hi everyone,
I need to execute a stored procedure that takes approximately 30 minutes to complete. I'm looking for the best approach to handle this while avoiding system hang-ups.
One option I’m considering is creating a button that triggers a function. The function would execute the procedure asynchronously, thus keeping the UI responsive. I’d also need to extend the timeout to 40 minutes or so to ensure the process completes without interruption.
Another option I'm leaning towards is using a Transaction Group to handle the execution. This seems like a cleaner solution, but I’d love to hear your thoughts on this.
I know the ideal advice might be to optimize the stored procedure itself, but due to company policies and other constraints, I'm limited to working with the existing procedure as-is.
What do you think? Which method would you recommend? Are there any other alternatives I should consider?
Thanks in advance for your help!