Guys,
I have a mysql table(tblrates) which continuously receives insert statements to insert rows into that table.
I have a stored procedure which selects rows from that table fora given criteria and insert into a temp table t process them(say temprates).
This procedure is called from an application. Whenever the application executes the stored procedure the master table(tblrates) gets locked and the lock gets released only after the insert into the temporary table is complete. Because of this the mastre table was not able to catch up with the data and it always lags during the peak hours.
I need both the insert into master table(tbltrates) and procedure to select into the temp table to work simultaneously without locking.Is there a way to avoid this?
Thanks,