Tagged articles
1 articles
Page 1 of 1
21CTO
21CTO
Sep 27, 2015 · Databases

Using Physical Primary Keys as Foreign Keys and Implementing Optimistic Locks

This article explains two key relational database design techniques: using auto‑increment or UUID physical primary keys for foreign key relationships, and employing optimistic locking with a version column to safely handle concurrent updates, while also covering when locks can be omitted.

Foreign KeySQLdatabases
0 likes · 6 min read
Using Physical Primary Keys as Foreign Keys and Implementing Optimistic Locks