in reply to O-O design, aggregation of objects
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: O-O design, aggregation of objects
by dsheroh (Monsignor) on Nov 08, 2008 at 16:28 UTC |