G
Guest
Hi;
What IsolationLevel is best for transactions for the following (by sub-row I
mean a pk:fk to a second table that has N rows in the second table that
"belong" to a row in the first table):
0) A select for a single row and it's 0 - 5 sub-rows.
1) A select where I am returning 1 - 10 rows - and each row has 0 - 5
sub-rows?
2) An insert of a row and it's 0 - 5 sub-rows.
3) An update of a row. I delete all sub-rows and then insert the sub-rows
for the update. I first read the row and compare timestamps throwing an
exception if they do not match (another user updated between this user's read
and write).
4) A delete of a row and it's sub-rows.
What IsolationLevel is best for transactions for the following (by sub-row I
mean a pk:fk to a second table that has N rows in the second table that
"belong" to a row in the first table):
0) A select for a single row and it's 0 - 5 sub-rows.
1) A select where I am returning 1 - 10 rows - and each row has 0 - 5
sub-rows?
2) An insert of a row and it's 0 - 5 sub-rows.
3) An update of a row. I delete all sub-rows and then insert the sub-rows
for the update. I first read the row and compare timestamps throwing an
exception if they do not match (another user updated between this user's read
and write).
4) A delete of a row and it's sub-rows.