Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Simple question, why not have a db backed Avatar model instead?


It is db-backed. It's just that the fields exist on the people table, instead of in their own table.


Thanks, I never noticed model aggregation before. Looks really useful.


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: