If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Help !!!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-04, 13:37
actions123 actions123 is offline
Registered User
 
Join Date: Aug 2004
Posts: 11
Help !!!!

Guys,

I am running a stored procedure with a cursor and it does an update.It takes about 15-25 minutes to update 40,000.That is way too long can someone point me in a direction of where to look to make it run faster.I had set my isolation level to CS using the "DB2_SQLROUTINE_PREPOPTS=ISOLATION CS". I am not doing anything fancy just select and update(not using the cursor).Any help will be appreciated.

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-03-04, 13:57
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by actions123
Guys,

I am running a stored procedure with a cursor and it does an update.It takes about 15-25 minutes to update 40,000.That is way too long can someone point me in a direction of where to look to make it run faster.I had set my isolation level to CS using the "DB2_SQLROUTINE_PREPOPTS=ISOLATION CS". I am not doing anything fancy just select and update(not using the cursor).Any help will be appreciated.

Thanks
Why not an updateable cursor?
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 11-04-04, 15:47
actions123 actions123 is offline
Registered User
 
Join Date: Aug 2004
Posts: 11
I cant to updateable cursor because i am joing two tables in my select.When i use the declare/open/fetch. It was not releasing locks at commit point.Thanks petruk
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On