Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Database input speed question

by Mur (Pilgrim)
on Jul 31, 2003 at 17:45 UTC ( [id://279683]=note: print w/replies, xml ) Need Help??


in reply to Re: Database input speed question
in thread Database input speed question

I must point out that syntax doesn't work in all DBMS. For PostgreSQL, you'll need something a bit more complex:
INSERT INTO table SELECT val11, val12 UNION SELECT val21, val22 UNION SELECT val31, val32 etc.
I don't think this will be significantly faster for large collections of data than to just use DBI with a statement handle and placeholders (but YMMV).
--
Jeff Boes
Database Engineer
Nexcerpt, Inc.
vox 269.226.9550 ext 24
fax 269.349.9076
 http://www.nexcerpt.com
...Nexcerpt...Connecting People With Expertise

Replies are listed 'Best First'.
Re: Re: Re: Database input speed question
by chunlou (Curate) on Jul 31, 2003 at 19:23 UTC
    Thanks for the clarification.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-29 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found