Hacker News new | ask | show | jobs
by manigandham 3093 days ago
An index is usually the most efficient way to check for uniqueness, so most databases do in fact handle this constraint with an index. Some of them will also automatically reuse this index if you manually try to create one for the same column.