🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #4134

Re: ADOexpress speed posting records

#4134
From: Jurko
Date: Fri, 22 Mar 2002 09:16
40 lines
2073 bytes
Put the ADO Dataset (Recordset) in batch update mode, make all changes and
then send the changes all in one go... (Set LockType to ltBatchOptimistic
and
call UpdateBatch(), not exactly sure whether a specific cursor type is
needed...
most likely local static or local keyset...)

Also there's no need to call Post after every Append() as Append by itself
calls
CheckBrowseMode() at its start which then calls Post() if needed. So Only
one post
is needed after data has been added... Also I think UpdateBatch() also calls
CheckBrowseMode() so it could be that no calls to Post are neeeded...

HTH,
    Jurko

P.S. If you try this out please post the if the time needed has decreased
and if
so then by how much. Thanks...

"BHL" <bhl@interconsult.com> wrote in message news:3c9ad717$1_2@dnews...
> Hallo
>
> I am posting about 1000 records to an sql server over an internet
connection
> using this sequence:
>
> ..->Append();
> ..setting fields
> ..->Post();
>
> Connection speed is isdn 64 kb/s, and it takes about 2 seconds for
> each record.
>
> Can anyone help me to increase spead of posting records?
>
> bhl
>
>
Technical Details
Message-ID: <jose7a.b6d.ln@news.ve-mil.hr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.rt.ru!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews!news.ve-mil.hr!nobody
References: <3c9ad717$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,a12015ca1a1d1b3b
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-03-22 01:39:17 PST
From: "Jurko" <Jurko@ve-mil.hr>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3c9ad717$1_2@dnews>
Subject: Re: ADOexpress speed posting records
Date: Fri, 22 Mar 2002 10:16:57 +0100
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <jose7a.b6d.ln@news.ve-mil.hr>
NNTP-Posting-Host: 195.29.221.130
X-Trace: dnews 1016789176 195.29.221.130 (22 Mar 2002 01:26:16 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.rt.ru!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews!news.ve-mil.hr!nobody