ect:RE: Faster Inserting Code
On Wed, 2004-09-22 at 15:35, Reidy, Ron wrote:
> Well, since you're using Oracle, modify your do() and prepare() statements as
> follows:
>
> $dbh->do("sql statement", {ora_check_sql => 0}) ...
>
> $dbh->prepare("sql state
On Wed, 2004-09-22 at 15:19, Lamb Joseph wrote:
> I bagged SQLite and used an Oracle DB.
>
You may want to check out 'execute_for_fetch', though I confess
I have not compared exe times, it may be worth investigating.
Jared
On Wed, 2004-09-22 at 15:35, Reidy, Ron wrote:
> Well, since you're using Oracle, modify your do() and prepare() statements as
> follows:
>
> $dbh->do("sql statement", {ora_check_sql => 0}) ...
>
> $dbh->prepare("sql statement", {ora_check_sql => 0}) ...
>
> And you will make your DBA happy.
>
[EMAIL PROTECTED] (Lamb Joseph) wrote in
news:[EMAIL PROTECTED]:
> I would like to know how to insert faster using
> SQLite.
SQLite insertions can be quite slow (doing several disk writes per insert)
if AutoCommit is enabled, as it is by default.
> my $dbh = DBI->connect("dbi:SQLite:data.dbl")
In article <[EMAIL PROTECTED]>,
Lamb Joseph <[EMAIL PROTECTED]> writes:
> I would like to know how to insert faster using
> SQLite.
INSERTing single rows will be slow, regardless of the used DBMS.
Export your data and use the SQLite COPY command to import them.
n Reidy
Lead DBA
Array BioPharma, Inc.
-Original Message-
From: Lamb Joseph [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 4:20 PM
To: [EMAIL PROTECTED]
Subject: RE: Faster Inserting Code
I bagged SQLite and used an Oracle DB.
Thanks for the help.
--- Jeff Urlwin <[EMAI
ay, September 22, 2004 4:19 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Faster Inserting Code
> >
> >
> > The select statement gets 30,000+ records. After
> 10
> > minutes of inserting using the code below it had
> > processed 7000 records. I wo
, too...
Jeff
> -Original Message-
> From: Lamb Joseph [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 22, 2004 4:19 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Faster Inserting Code
>
>
> The select statement gets 30,000+ records. After 10
> minutes of inser
r. Where are things slow? What are
> your expectations?
>
> -
> Ron Reidy
> Lead DBA
> Array BioPharma, Inc.
>
>
> -Original Message-
> From: Lamb Joseph [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 22, 2004 2:05 PM
> To:
Inserting Code
I would like to know how to insert faster using
SQLite.
use strict;
use dbi;
use Date::Manip;
use Diagnostics;
#Connect to the database
my $dbh = DBI->connect("dbi:SQLite:data.dbl")
|| die "Cannot connect: $DBI::errstr";
#MSSQL Server
my $kewilldb = 'LV
I would like to know how to insert faster using
SQLite.
use strict;
use dbi;
use Date::Manip;
use Diagnostics;
#Connect to the database
my $dbh = DBI->connect("dbi:SQLite:data.dbl")
|| die "Cannot connect: $DBI::errstr";
#MSSQL Server
my $kewilldb = 'LV_KWARCHIVE';
my $dbh_kewill = DBI->conne
11 matches
Mail list logo