B
burlo.stumproot
Using WinXP Activestate 5.8.4
I'm using dbi
BM to analyze some data. I read it from a file,
process it some and then put it in a dbi
BM database. I run a couple
of sql's on it and save the result for later use.
But I'm finding it rather slow. 18 sec(*) to do 126 inserts and I'm
planning to do about 1000 inserts and then 5-10 selects when I'm
working on live data.
I moved the database to a ramdisk(**) and it took about 1,4 seconds.
(I'm not planning to save the database after each run.)
But then I got to thinking, is this the best way? Perhaps it's
possible to tell dbi
BM not to write it's data to file, or at least
delay writing until I have *a big* chunk of data or until I
$dbh->disconnect;
Googling and reading the docs made me no wiser, and I have not had
enough guts to start reading the source yet.
So my question is this:
Can I speed up dbi
BM without using a ramdisk?
If so how?
Or should I use somthing other than DBI
BM for this task?
/PM
(*)
$dbh = DBI->connect('dbi
BM:type=DB_File;mldbm=Storable');
$dbh->{f_dir} = 'tmp_db';
(**)
I'm currently using this, since I have an ancient app that
demands it's data from A:
Virtual Floppy Drive (VFD) for Windows NT platform.
http://chitchat.at.infoseek.co.jp/vmware/vfd.html
I'm using dbi
process it some and then put it in a dbi
of sql's on it and save the result for later use.
But I'm finding it rather slow. 18 sec(*) to do 126 inserts and I'm
planning to do about 1000 inserts and then 5-10 selects when I'm
working on live data.
I moved the database to a ramdisk(**) and it took about 1,4 seconds.
(I'm not planning to save the database after each run.)
But then I got to thinking, is this the best way? Perhaps it's
possible to tell dbi
delay writing until I have *a big* chunk of data or until I
$dbh->disconnect;
Googling and reading the docs made me no wiser, and I have not had
enough guts to start reading the source yet.
So my question is this:
Can I speed up dbi
If so how?
Or should I use somthing other than DBI
/PM
(*)
$dbh = DBI->connect('dbi
$dbh->{f_dir} = 'tmp_db';
(**)
I'm currently using this, since I have an ancient app that
demands it's data from A:
Virtual Floppy Drive (VFD) for Windows NT platform.
http://chitchat.at.infoseek.co.jp/vmware/vfd.html