Skip to content

Commit 207faf4

Browse files
authored
Update postgresql_guidelines.md (#57)
1 parent 1cf25cb commit 207faf4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

documents/forDB/postgresql_guidelines.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,17 +1569,6 @@ CREATE TABLE unit_price (
15691569

15701570
:::
15711571

1572-
::: tip トランテーブルの世代管理
1573-
1574-
トランも業務ドメインによっては訂正と世代管理が求められる場合がある。この場合、改廃の観点がマスタとは異なってくる。
1575-
1576-
-1)単一テーブルで世代番号管理
1577-
- ⚠️DELETE改廃かつ、アプリ側との排他制御の考慮が必要。
1578-
-2)履歴テーブル管理
1579-
- ✅️DELETE改廃になるが、メインテーブルとの排他制御は考えなくて済む
1580-
1581-
:::
1582-
15831572
履歴テーブル側の更新方法は以下の2種類が考えられるが、アプリケーション側での操作を推奨する。
15841573

15851574
1. 同一トランザクションかつアプリケーションで登録

0 commit comments

Comments
 (0)