We don't bite newbies here... much | |
PerlMonks |
Re: O-O design, aggregation of objectsby mpeever (Friar) |
on Nov 08, 2008 at 03:55 UTC ( [id://722351]=note: print w/replies, xml ) | Need Help?? |
If I call User->new(), should that actually create a database entry? I'm interested to see what feedback you get. But I assure you, DB writes on object creation is a bad idea. It will lead to a ton of spurious of DB writes, and possibly race conditions. In the very least, creating the objects from the DB will be interesting, as de-serializing those objects from the DB will trigger DB writes...
In Section
Seekers of Perl Wisdom
|
|