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 > does select with ur threatens inserts?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-01-06, 09:21
shedb shedb is offline
Registered User
 
Join Date: Dec 2003
Posts: 78
does select with ur threatens inserts?

Hi
I have a table with more than 20 million records in db2 udb v8.
Data is inserted to this table, and sometimes select statement for old records is run on the table with ur.

what i m asking is that, does the selects with 'with ur' may block/slow down inserts on table? ( as the number of rows is huge on the table)?

tnx in advance
Reply With Quote
  #2 (permalink)  
Old 12-01-06, 10:24
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
A select WITH UR will not lock any rows or tables (not even a share lock), and it will ignore other locks from other applications. WITH UR has no affect on an insert, update, or delete.

You may also want to consider the DB2_SKIPINSERTED registry variable.
http://publib.boulder.ibm.com/infoce...e/r0012305.htm
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 12-03-06, 08:34
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
"SELECT ... WITH UR" will not block any inserts (nor updates or deletes).
On the other hand, it will possibly read some of the inserted lines (even uncommitted ones) while it will not read some other ones.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
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