Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Database Accessor Classes

by nmerriweather (Friar)
on Mar 06, 2006 at 19:15 UTC ( #534733=note: print w/replies, xml ) Need Help??

in reply to Database Accessor Classes

re: updates

in my homegrown solution i do this:

all data goes into _PROFILE into one of 3 structures: _text , _array , _hash

when i update an object, information goes into _SUBMITTED , into the same structure

i compare _SUBMITTED to _PROFILE. if a field is different, it gets tossed into an update clause

once the db commits, _SUBMITTED fields are copried to _PROFILE

i also cache/session all objects based on _PROFILE, not on the class. this way i can use multiple languages to handle the same objects , and get a bit more flexibility

re: loads a_ create a 'listing' class that just loads the info you want b_ load everything at once, store in memcached w/a timeout.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://534733]
[Corion]: Discipulus: Yes, but it seems to have handling in place to tell a cookie jar to extract cookies from responses and add them to other requests, which is what's needed
Discipulus must give a try to this module anyway..
[Discipulus]: so, combined with HTTP::CookieJar ?

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2017-05-23 18:53 GMT
Find Nodes?
    Voting Booth?