I have a transaction that executes in READ COMMITTED isolation level. Within the transaction I insert 10,000 rows into a table called ‘Docs’ with DocId as primary key and 3 indexes on VendorId, CompanyId and ProgramId. However, it appears that the indexes do not get updated till I commit data. Is this true? Is there a way I can force indexes to be updated within the transaction before the commit is called?
I have a transaction that executes in READ COMMITTED isolation level. Within the transaction
Share
It is not true (unless the indexes are disabled).
The uncommitted index updates will only be available in READ UNCOMMITTED isolation level or with the nolock hint.
Why would it be a problem? Do you really need to see the uncommited data? Read uncommited is usually used to avoid the locking overhead not to read the new data.