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

Re^5: DBI - Table names & placeholders

by ikegami (Pope)
on Apr 26, 2010 at 07:08 UTC ( #836846=note: print w/ replies, xml ) Need Help??

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

Still not exactly what I would have liked

Maybe if you told us what you wanted?

Comment on Re^5: DBI - Table names & placeholders
Re^6: DBI - Table names & placeholders
by McDarren (Abbot) on Apr 26, 2010 at 11:13 UTC
    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.

      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://836846]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2015-02-27 17:38 GMT
Find Nodes?
    Voting Booth?

    On my keyboard, Caps lock is:

    Results (451 votes), past polls