Re: ADO Recordset to SQLite
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Mon, 13 Nov 2006 14:39:31 -0000
What is the fastest way to get data from an Interbase database...
I have this code now, which works well, but is a bit slow:
Because you have not set the CacheSize in the Recordset.
If you are using server-sided cursors, vital.
Try some power of 2 like 256, 512 etc.
140 LR = rs.RecordCount
Waste of time. It will be -1 for a ForwardOnlyCursor. See ADO documentation.
I wonder if I could make a construction with INSERT INTO, so pushing data
directly to SQLite, without making a
Recordset first.
You should be able to. If it is many records, you might want to setup a
Command Object and try with multiple INSERTs, passing parameters. I would
not use a Recordset but if you are going to, client-sided using UpdateBatch
and a command similar to
SELECT * FROM yourtable WHERE 0=1
SELECT fld1,fld2... FROM yourtable WHERE 0=1
The 0=1 is the only way of getting an empty Recordset with all field
infomation present suitable to many AddNews. UpdateBatch will then do
multiple INSERTs
Stephen Howe
.
- Follow-Ups:
- Re: ADO Recordset to SQLite
- From: RB Smissaert
- Re: ADO Recordset to SQLite
- References:
- ADO Recordset to SQLite
- From: RB Smissaert
- ADO Recordset to SQLite
- Prev by Date: Re: how to find differences between production and test databases
- Next by Date: Re: how to find differences between production and test databases
- Previous by thread: ADO Recordset to SQLite
- Next by thread: Re: ADO Recordset to SQLite
- Index(es):
Relevant Pages
|
|