Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- programmers
- JavaScript
- spring boot
- 알고리듬
- SWEA
- Priority Queue
- 코딩테스트
- GitHub
- Vue.js
- boj
- Back tracking
- Python
- 모의SW역량테스트
- CSV
- django
- Bruth Force
- 알고리즘
- hash table
- Linked list
- aws
- DFS
- Data Structure
- SQL
- Algorithm
- Trie
- gpdb
- 코테
- BFS
- 구현
- 시뮬레이션
Archives
- Today
- Total
hotamul의 개발 이야기
[CS - DB] Isolation level of Transactions 본문
Isolation level of Transactions
In a select transaction, several problems might occur:
- Dirty Read: Other transactions can see changes from the current transaction, even if the changes are not yet committed
- Non-Repeatable Read: Repeated attempts to read the same data results in different result sets
- Phantom Read: By inserting, modifying or deleting data, other transactions will see different results even if the conditions remain the same
SQL defines 4 different transaction levels:
- READ UNCOMMITTED: Changes in a transaction are visible from outside (in PG: READ COMMITTED)
- READ COMMITTED: Changes are only visible after COMMIT
- REPEATABLE READ: The database remembers the timestamp of the first read of a data set, but this does not belong to new data sets inserted in the meantime (in PG: SERIALIZABLE)
- SERIALIZABLE: Transactions are fully encapsulated
'Dev. > DB' 카테고리의 다른 글
대댓글 기능 데이터 모델링 #2 (Path Enumeration) (0) | 2024.01.03 |
---|---|
대댓글 기능 데이터 모델링 #1 (Adjacency List) (0) | 2024.01.03 |
Comments