|
|
|
|
|
by sgarland
643 days ago
|
|
Partitions should not impact the use of an INT PK, except that you’ll need to include the partition key in the PK, e.g. (id, created_at) if partitioning by datetime. The displayed ordering without an explicit ORDER BY may not make sense, but to be fair, there are never any guarantees about implicit order. Replication should be fine, unless you mean active-active in which case I suggest a. not doing that b. using interleaved chunks, or a coordinator node that hands them out. Business data exposure can be avoided (if it’s actually a problem, and not just a theoretical one) in a variety of ways; two of the most common are: * Don’t use the id in the slug. * Have a iid column that’s random and exposed, while keeping the integer as the PK. If you need unique IDs across tables, then I question your use of an RDBMS, because you aren’t really making use of the relational aspect. |
|