Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: OO concepts and relational databases

by diotalevi (Canon)
on Aug 02, 2004 at 16:08 UTC ( #379318=note: print w/replies, xml ) Need Help??


in reply to OO concepts and relational databases

There's a separate idea dealing with object identity. In the database I've stored a fact( name=diotalevi, homepage=http://grenekatz.org ), in your OO world you may have multiple in-memory objects all dealing in the same fact. When you update an object representing a record would that update all the other objects tied to that fact? Or what of transactions? Or what of comparing objects for identity? If I have two objects pointing to the same record would I compare them for perl-object equality or record-equality? I would tend to thing that things such as eval { $oa->{'homepage'} = '...'; ... die }; ... = $ob->{'homepage'} would properly note that updates to $oa only propogate to $ob if $oa's update transaction completed successfully. Or maybe $oa and $ob should be considered part of the same connection so uncommitted updates would be visible to both but not to a hypothetical $oc.

This is something additional for you to think about anyway.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://379318]
help
Chatterbox?
[Discipulus]: Satura Lanx was a latin genre of show
[Discipulus]: coming from the meaning of 'mixed dish'
[Discipulus]: thanks hippo! the hat you passed me was brand new and clean, thanks
LanX OS builds on multitasking humor ...
[LanX]: ... next release comes with even more random puns!

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-07-28 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (426 votes). Check out past polls.