Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: DBI: How to update 150K records efficiently

by graff (Chancellor)
on Apr 01, 2008 at 05:01 UTC ( #677694=note: print w/ replies, xml ) Need Help??


in reply to DBI: How to update 150K records efficiently

You may want to check into controlling the AutoCommit attribute of the DBI connection. (This relates to the notion of transaction handling mentioned above.) I know from personal experience (on a mirrored MySQL server) that AutoCommit being on vs. off (and issuing a commit(), say, every thousand updates or so, instead of on every update) can make a major difference in speed (esp. on a mirrored server).


Comment on Re: DBI: How to update 150K records efficiently

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2015-08-01 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls