Ten ways to wreck your database
Jump to navigation
Jump to search
http://it.toolbox.com/blogs/database-soup/ten-ways-to-wreck-your-database-32814
http://www.oreillynet.com/pub/e/1371
Overview from Matt:
His points:
- One big spreadsheet
- Random naming
- No keys
- No foreign keys
- No constraints
- Non-atomic fields: type=user, type=administrator, type=inactive
- Magic numbers: id=999999, id=0, date=2008-02-30
- Polymorphic fields: contact_info=555-1212, contact_info=email@example.com
- EAV - entity-attribute-value:
- ID property setting
- 1 height 66in
- 2 eyes brown
- 2 married? false
- 1 age 34
- 2 smoker? false
- Let the ORM do it
Point 9 was the only one new to me... sure looks a lot like Mosuki's cert table.