Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: It's bad manners to slurp

by Abigail-II (Bishop)
on Apr 29, 2004 at 12:33 UTC ( [id://349108]=note: print w/replies, xml ) Need Help??


in reply to It's bad manners to slurp

Well, what was happening was a combination of bad designs, of which slurping in all the data was just one of them. Other factors that played an important role: use of a poor database, one that didn't upgrade 3.7 million row locks to a table lock, and the fact that application code was run on the database server. But what I fail to understand is why there is an application involved at all. From the pseudo-code I get the impression that all what's done is fetching all the data from a table, writing that data to a file, then loading it back into a (different?) database. Why not have the one database dump its table using its native tools?

Abigail

Replies are listed 'Best First'.
Re: Re: It's bad manners to slurp
by rinceWind (Monsignor) on Apr 29, 2004 at 13:02 UTC
    Actually, the source database is a wierd beast called Versant. It's rather an object persistence store than a database, and it is non-relational.

    When it comes to locking strategies, Versant tends to assume that you know what you are doing (something which was not the case in this instance).

    Why not have the one database dump its table using its native tools?
    That's a thought. The client where I am working do tend to have a philosophy of doing everything in application code (C++, yeugh). I looked at
    db2tty -D $DBAME -i myClass
    and this does dump all objects in myClass to stdout. There are issues with escaping and format conversion, and it would be hard to convince my colleagues to abandon the extractor code they are already using.

    Anyone else out there using Versant?

    --
    I'm Not Just Another Perl Hacker

Log In?
Username:
Password:

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

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

    No recent polls found