[CDBI] Class::DBI and Apache::Session - Why does it work?
Matt S Trout
dbix-class at trout.me.uk
Fri Dec 2 23:36:46 GMT 2005
On Sat, Dec 03, 2005 at 12:05:29AM +0100, Brad Bowman wrote:
> >No, you persisted the complete state of the object at that time. It
> >gets run through Storable.
> >By the way -- don't do this! You might lose updates made in the
> >database between the time you store it and retrieve it. The best way to
> >handle this is to put the ID into the session and do a fresh retrieve()
> >call when you want the object.
> Is it worth providing Storable hooks to store only the primary key
> then fetch the object afresh when thawing?
> This has come up a few times now.
That'd probably make a good plugin.
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the ClassDBI