Thanks All,
we have now decided to go 4k page on this particular table , this is
more of a transactional table which only ever has new rows created for
each financial transaction in the system , the rows never get updated or
deleted from this table .
I have run a few tests with 'set lock_trace' with row level locking on
this table and my results show that the it only ever takes a PAGE level
lock (Mode:IX) during insert ( creation of a new row )
extract from the lock trace is detailed below .
However it does take a row level locks during an udpate/insert if done
on the table
NOTE: - it does not seem to hold any locks on a secondary index that I
have on this table for a new insert
Is this behaviour expected ? just need a second opinion on this one
-------------------------------------------------------------------
LOCK: PAGE PHYS Mode: S Timeout: 0 Key:
(testdb,k_testtable,0.0)
LOCK: PAGE PHYS Mode: S Timeout: 0 Key:
(testdb,k_testtable,0.354604)
UNLOCK: PAGE Key: (testdb,ktesttable,0.0)
LOCK: PAGE PHYS Mode: S Timeout: 0 Key:
(testdb,k_testtable,0.504325)
UNLOCK: PAGE Key: (testdb,ktesttable,0.354604)
UNLOCK: PAGE Key: (testdb,ktesttable,0.504325)
-------------------------------------------------------------------
-------------------------------------------------------------------
LOCK: TABLE NOWT Mode: IX Timeout: -4 Key:
(testdb,k_testtable)
LOCK: VALUE PHYS Mode: X Timeout: 0 Key:
(testdb,k_testtable,3309846,262144,0)
LOCK: PAGE PHYS Mode: S Timeout: 0 Key:
(testdb,k_testtable,0.0)
LOCK: PAGE PHYS Mode: S Timeout: 0 Key:
(testdb,k_testtable,0.354604)
UNLOCK: PAGE Key: (testdb,ktesttable,0.0)
LOCK: PAGE PHYS Mode: S Timeout: 0 Key:
(testdb,k_testtable,0.504325)
UNLOCK: PAGE Key: (testdb,ktesttable,0.354604)
UNLOCK: PAGE Key: (testdb,ktesttable,0.504325)
LOCK: PAGE LOCL Mode: IX Timeout: 0 Key:
(testdb,k_testtable,0.504569)
-------------------------------------------------------------------