zaimoni has asked for the wisdom of the Perl Monks concerning the following question:
Of course, each of the above lines would be delimited correctly for the intended interface.INSERT INTO UberTable (Arg1,...ArgN) VALUES (Val1,...,ValN) INSERT INTO UberTable (Arg1,...ArgN) VALUES (Val1,...,ValN) INSERT INTO UberTable (Arg1,...ArgN) VALUES (Val1,...,ValN) INSERT INTO UberTable (Arg1,...ArgN) VALUES (Val1,...,ValN)
Again: Sending n queries separately is causing a very inconvenient performance hit that would be removed by sending n queries in one fell swoop.
I don't know what module system will have the intended effect when used correctly. My current code base uses the DBI and DB::ODBC modules. Alas:
(DBI.pm inline documentation, slightly reformatted)Multiple SQL statements may not be combined in a single statement handle ($sth), although some databases and drivers do support this (notably Sybase and SQL Server).
(end DBI.pm inline documentation)If a more effective module system exists, name all that you immediately know of. Source code fragments are unnecessary, unless it's a creative application of the DBI module system.
Thank you for your time.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Batch DB query -- implementation?
by cchampion (Curate) on Jul 03, 2002 at 15:54 UTC | |
Re: Batch DB query -- implementation?
by Aristotle (Chancellor) on Jul 03, 2002 at 15:23 UTC | |
by zaimoni (Beadle) on Jul 03, 2002 at 16:13 UTC | |
by Aristotle (Chancellor) on Jul 03, 2002 at 18:55 UTC | |
Re: Batch DB query -- implementation?
by perrin (Chancellor) on Jul 03, 2002 at 15:48 UTC | |
by zaimoni (Beadle) on Jul 03, 2002 at 15:54 UTC | |
by perrin (Chancellor) on Jul 03, 2002 at 15:59 UTC | |
by zaimoni (Beadle) on Jul 03, 2002 at 16:07 UTC | |
by perrin (Chancellor) on Jul 03, 2002 at 16:28 UTC | |
Re: Batch DB query -- implementation?
by mpeppler (Vicar) on Jul 03, 2002 at 18:11 UTC | |
Re: Batch DB query -- implementation?
by rdfield (Priest) on Jul 03, 2002 at 15:44 UTC |