Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cleaver
on Jan 2, 2012
|
parent
|
context
|
favorite
| on:
Do you make these 5 database design mistakes?
Agreed. And certainly better than creating bad indices.
glhaynes
on Jan 2, 2012
[–]
I wonder: are there any good rules-of-thumb for when to go ahead and add indices at table-creation time?
BrentOzar
on Jan 3, 2012
|
parent
|
next
[–]
Add an index to support foreign key relationships. If you've got a SalesHeader table and a SalesDetail table, you want an index on SalesDetail.SalesHeaderID, especially if you allow cascading deletes from the SalesHeader table.
emmett
on Jan 2, 2012
|
parent
|
prev
[–]
Projected usage. It can be done, but you have to be an expert basically.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: