I'm defining the isolation level as READ UNCOMMITTED
because this is a long running process on a few tables and there's no risk for dirty read because I'm just inserting new data.
Based on my understanding, because I'm using this isolation level, I should be able to execute SELECT
statements from the table where I'm inserting rows but I can't, it gets blocked.
Why is this isolation level blocking the SELECT
statement?
It is supposed to allow to query those tables and, in the worst case scenario, retrieve dirty data.
Just in case this helps, I'm working with a CURSOR
(I know, I hate them too but I did not write this code) over really big data and multiple tables.