Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Fork a new process for inserting a record in DB (Oracle)

by Anonymous Monk
on Nov 07, 2013 at 14:19 UTC ( #1061579=note: print w/ replies, xml ) Need Help??


in reply to Re: Fork a new process for inserting a record in DB (Oracle)
in thread Fork a new process for inserting a record in DB (Oracle)

Yes. I'm opening a DB connection for each thread and closing the connection. When I run the script... it just runs fine for first few seconds.... and then throws the above error...


Comment on Re^2: Fork a new process for inserting a record in DB (Oracle)
Re^3: Fork a new process for inserting a record in DB (Oracle)
by talexb (Canon) on Nov 07, 2013 at 14:25 UTC

    Wow. That's a completely brutal way of doing it. Think of how much work is involved in setting up a database connection, doing one insert, and then tearing down that connection.

    A better way might be to split the data into 20 chunks, and then pass each of the chunks to a separate process.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-08-23 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls