Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Doubt about fly-weight objects.

by blazar (Canon)
on May 17, 2005 at 14:38 UTC ( [id://457835]=note: print w/replies, xml ) Need Help??


in reply to Re: Doubt about fly-weight objects.
in thread Doubt about fly-weight objects.

Class::DBI does exactly this. If enabled, there is an 'object index' which makes sure that there is only one instance of a given table row existing as an object at a time. This doesn't provided caching, but a means to make sure that you don't do something stupid since they aren't really multiple objects, just refs to the same row.
Interesting, especially since I do use Class::DBI, but mostly in a relatively naive way, since I've been exposed to it by more experienced (in Class::DBI itself, that is - and in DBses in general) coworkers.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://457835]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-25 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found