Article View: borland.public.cppbuilder.database.ado
Article #4394Speed up Database
From: Avex
Date: Tue, 18 Dec 2001 03:03
Date: Tue, 18 Dec 2001 03:03
8 lines
1515 bytes
1515 bytes
Hi all,
I have a large records , I need to post them into db,
but it needs long time to such a thing. Is there a
way to speed up ? My codes are as below:
I use ADO.
for (i=0;i<9800000;i++)
{
Table1->Append();
Table1->FieldByName("f1")->AsString = f1[i];
........................................................................
Table1->FieldByName("fn")->AsString = fn[i];
Table1->Post();
}
Technical Details
Message-ID:
<3c1eb21f_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,77d6545c02a2aaf5,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-12-17 19:08:14 PST From: "Avex" <I@dont.like.spammar> Newsgroups: borland.public.cppbuilder.database.ado Subject: Speed up Database Date: Tue, 18 Dec 2001 11:03:10 +0800 Lines: 9 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: base64 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 NNTP-Posting-Host: 210.66.196.226 Message-ID: <3c1eb21f_1@dnews> X-Trace: dnews 1008644639 210.66.196.226 (17 Dec 2001 19:03:59 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews