Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^6: DBI - Table names & placeholders

by McDarren (Abbot)
on Apr 26, 2010 at 11:13 UTC ( #836887=note: print w/replies, xml ) Need Help??

in reply to Re^5: DBI - Table names & placeholders
in thread DBI - Table names & placeholders

Well, it just irks me that I have to do a separate prepare and execute for every single row of data that I want to insert - as opposed to "prepare once, execute many times".

But, it's no biggie - the job is done and the data is flowing.

Replies are listed 'Best First'.
Re^7: DBI - Table names & placeholders
by ikegami (Pope) on Apr 26, 2010 at 16:04 UTC
    You're describing my second snippet.
      oh, duh - yes, of course!

      I've modified my code to use the caching technique in that example, and it works a treat. In production this will be generating ~100,000 inserts on each run (every 2 hours), so I expect it may provide quite a performance boost.

      Thanks again :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://836887]
[holli]: so i filed a pull request for a open source project on github, they guy asks me "what motivates me to do this"
[holli]: i am tempted to answer "to please our new asian overlords" or something
[holli]: what a silly question

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2017-10-18 22:48 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (251 votes). Check out past polls.