🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Speed with ADO

#1791
From: avix
Date: Wed, 28 Jan 2004 11:35
28 lines
1734 bytes
Hello,

I'm writting several DB access routines with ADO and i started to write them
in Visual Basic, they worked fine. Now i'm 'transalting' those routines to
Builder and i'm very surprised because they work slower than in VB. What in
vb takes aprox. 500 ms in BCB takes almost 800 ms.

I'm creating TADOCommand and TADODataSet inside the code (with new, not
using controls) . The most important time cost is when the command is
executed and the recordset is created (the sentences between the '>>>>>>'
marks):

TADOCommand *ADOcommand = new TADOCommand(Application);
ADOcommand->Connection = ADOconnection;
ADOcommand->CommandType = cmdText;
ADOcommand->CommandText = txtSQL;

>>>>
TADODataSet *ADOrset = new TADODataSet(Application);
ADOrset->Recordset = ADOcommand->Execute();
>>>>

Do you know any tricks for speeding up my code?
Am i doing somethig wrong?

Thank you in advance.

Avix
Technical Details
Message-ID: <bv86qd$p6060$1@ID-202260.news.uni-berlin.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!246.red-80-38-55.pooles.rima-tde.NET!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,b8117718debae563,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-01-28 03:35:44 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!246.red-80-38-55.pooles.rima-tde.NET!not-for-mail
From: "avix" <avix@avix.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Speed with ADO
Date: Wed, 28 Jan 2004 12:35:17 +0100
Lines: 30
Message-ID: <bv86qd$p6060$1@ID-202260.news.uni-berlin.de>
NNTP-Posting-Host: 246.red-80-38-55.pooles.rima-tde.net (80.38.55.246)
X-Trace: news.uni-berlin.de 1075289742 26411200 80.38.55.246 ([202260])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165