Stored Procedure performance
Posted: Mon 31 Mar 2008 19:12
I have a problem when running stored procedure from MyDAC 4.40.
I use EMS Manager for creating and browsing the databse and I created a stored procedure that does not retrive a resultset but make a series os calculation and update a table.
The problem I have is that when I run the SP from withing EMS everything goes fine, it takes about 20 sec or so to do all, but when I run it using TMyStoredProc the SP take abut 10 min to execute.
Is there something I am missing, something I can do to speed up like just sending the call to the server or something?
I don't need a result set or anything for that matter.
I was doing so research and it takes a long time inside the cursor I have inside the sp when I call it from TMyStoredProc.
using MyDAC 4.40
Delphi 7
Mysql 5.0.41
EMS 4.2.1.1
I use EMS Manager for creating and browsing the databse and I created a stored procedure that does not retrive a resultset but make a series os calculation and update a table.
The problem I have is that when I run the SP from withing EMS everything goes fine, it takes about 20 sec or so to do all, but when I run it using TMyStoredProc the SP take abut 10 min to execute.
Is there something I am missing, something I can do to speed up like just sending the call to the server or something?
I don't need a result set or anything for that matter.
I was doing so research and it takes a long time inside the cursor I have inside the sp when I call it from TMyStoredProc.
using MyDAC 4.40
Delphi 7
Mysql 5.0.41
EMS 4.2.1.1