I have a web application for Retail company. Lot of calculations & inserts are done in stored procedures due to which the application is taking load. Some stored procedures run for 5 hours.
I came with a caching solution. I made sql tables where I insert data after stored procedure execution. So the system checks if there is data in my new tables, it will fetch from there else run the stored procedure.
To automate it, we made a windows service where we could run 11 stored procedures parallely. But somehow the process gets stuck in between. Only 6 sps run while the other 5 doesnt.
Am I trying the right solution? Can anybody propose a better solution or tweak my flow ?