Skip to content

Commit 9e90d82

Browse files
committed
notes about isolations for database/sql
1 parent 0f999a5 commit 9e90d82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SQL_MIGRATION_v2_v3.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88

99
In `ydb-go-sdk/v2/ydbsql` was allowed `sql.LevelReadCommitted` and `sql.LevelReadUncommitted` isolation levels for read-only interactive transactions. It implements with fake transaction with true `OnlineReadOnly` transaction control on each query inside transaction.
1010

11-
`ydb-go-sdk/v3` allowed only `sql.LevelSnapshot` for read-only interactive transactions. Currently, snapshot isolation implements over fake transaction with true `OnlineReadOnly` transaction control.
11+
Transaction controls `OnlineReadOnly` and `StaleReadOnly` will deprecate in the future.
12+
13+
That's why `ydb-go-sdk/v3` allowed only `sql.LevelSnapshot` for read-only interactive transactions. Currently, snapshot isolation implements over `fake` transaction with true `OnlineReadOnly` transaction control on each request inside transaction.
1214
YDB implements snapshot isolation, but this feature is not deployed on YDB clusters now. After full deploying on each YDB cluster fake transaction will be replaced to true read-only interactive transaction with snapshot isolation level.

0 commit comments

Comments
 (0)