🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Speed up Database

#4460
From: Markus
Date: Thu, 03 Jan 2002 14:00
51 lines
2438 bytes


I've been trying to create a fast connection to a local MS Access database
using ADO components in BCB5. When inserting records into a very small test
db for insertion speed measurement, I got 17 seconds for 1000 records using
ADO-Jet 4.0 to with MS Access. Comparing to 0.7 seconds with IBX and IB6
MSAccess seems pretty lousy. Am I doing something wrong or is it reality?

Vassiliev, I tried to use your components as well, but didn't manage to
create a connection (jet4-MS Access) due to an "authorisation problem" which
I didn't understand.

Thanks for any help on using MS Access as dircectly as possible and as fast
as possible.

regards,
Markus



"Vassiliev V.V." <vv_vas@iname.com> wrote in message
news:3c2e658b_1@dnews...
> Try OLEDB Direct at http://www.oledbdirect.com. It uses OLEDB directly,
> without ADO. I added 1 million rows at 1 minute 5 seconds on PII-300 on
SQL
> Server with these components.
>
> Vassiliev V.V.
>
>
> "Avex" <I@dont.like.spammar> ???????/???????? ? ???????? ?????????:
> news:3c1eb21f_1@dnews...
> > 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: <3c3463ec$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3c1eb21f_1@dnews> <3c2e658b_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,77d6545c02a2aaf5
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-01-03 06:02:09 PST
From: "Markus" <markus.kemetter@suunto.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3c1eb21f_1@dnews> <3c2e658b_1@dnews>
Subject: Re: Speed up Database 
Date: Thu, 3 Jan 2002 16:00:11 +0200
Lines: 53
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: 193.229.211.1
Message-ID: <3c3463ec$1_1@dnews>
X-Trace: dnews 1010066412 193.229.211.1 (3 Jan 2002 06:00:12 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews