Re:Auto increment is a terrible idea
by lmm on Thursday November 30, 2017 @09:28AM
(#15815894)
That's the worst of both worlds. Writes are slower than ever since you have to update both indices on every insert. If you normalize your database you have to do a bunch of extra joins for every API response. If you denormalize it you have twice as many columns and either complex foreign key constraints (slowing down writes even further) or the possibility of getting your data into an inconsistent state.
[ Parent
| on HN ]
There are no comments on this comment yet.