Procedure taking tomuch time in execution [message #487840] |
Sun, 02 January 2011 13:14 |
|
arpitpasari
Messages: 4 Registered: December 2010 Location: INDIA
|
Junior Member |
|
|
In my procedure having 7 temporary (not global table) table .Each tables contain at least 6 lack records .I am fetching the data from one main table (out of 7 tables) through cursor. On the basis of this record I will select data from others 6 tables. After collect all the information I will update or insert the records in 5 main tables. But this is taking so much time more than 3 hours. Bulk insert and update is not possible because in some table I have to update/insert multiple records....I commented the insert and updated part than it took only 2 mins.Even I observe at staring process run so fast but after process of 10000 records it will slow down. please suggest me what could be the problem .any possibility of table locking or less memory of database buffer......How can I check
Thanks
|
|
|
|
|
|
|
|
|
|
|
|