When we run the CASE:A & B one line by line (means one line CASE:A then one line CASE:B) MS-SQL Hangs on select statement but PostgreSQL executes it very well
CASE:A
SET TRANSACTION ISOLATION LEVEL READ COMMITTED
begin transaction
insert into mytable (id, name) values (98,'person-1')
select * from mytable order by id
CASE:B
SET TRANSACTION ISOLATION LEVEL READ COMMITTED
begin transaction
insert into mytable (id, name) values (99,'person-2')
select * from mytable order by id
Why MS-SQL blocking mytable to run "select *" query while we are using isolation level READ-COMMITTED
We are having same project on MSSQL & PostgreSQL with more or less same queries and architecture.
PostgreSQL project is running fine but MS-SQL project is randomly giving DEADLOCKS, CHOCKING SYSTEM etc.