Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
namcos
on Feb 4, 2009
|
parent
|
context
|
favorite
| on:
Models vs. Modules
Simple question, why not have a db backed Avatar model instead?
jamis
on Feb 4, 2009
|
next
[–]
It is db-backed. It's just that the fields exist on the people table, instead of in their own table.
namcos
on Feb 4, 2009
|
parent
|
next
[–]
Thanks, I never noticed model aggregation before. Looks really useful.
ambition
on Feb 5, 2009
|
prev
[–]
Also if you did it db backed in a separate table, you'd have to do database joins to retrieve avatars, which might have a performance impact.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: