News for hackers. Stuff that matters.
Re:Models vs. Modules by namcos on Wednesday February 04, 2009 @12:50PM (#466114)
Simple question, why not have a db backed Avatar model instead?
Re:Models vs. Modules by jamis on Wednesday February 04, 2009 @12:56PM (#466129)
It is db-backed. It's just that the fields exist on the people table, instead of in their own table.
Re:Models vs. Modules by namcos on Wednesday February 04, 2009 @01:03PM (#466152)
Thanks, I never noticed model aggregation before. Looks really useful.
Re:Models vs. Modules by ambition on Wednesday February 04, 2009 @11:17PM (#467086)
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.