Re: Speed problem with mssql 2000 and ado

From: Vitali Kalinin (vitkalinin_at_yahoo.com)
Date: 03/26/04


Date: Fri, 26 Mar 2004 17:40:40 +0200

You can DisableControls for TADODataSet before looping. Also I recommend you
to not bother MS SQL Server with 1000 sequential calls for different ids, I
believe that should be better way do accomplish it. Most preferable would be
extract all necessary data within single select or you can split 1000 ids on
batches with 100 ids in each and request 100 values within single query.

Regards,

Vitali

"Sascha Schroeder" <sascha.schroeder@e-pro.de> сообщил/сообщила в новостях
следующее: news:40643cf0@newsgroups.borland.com...
> We are evaluating ado with delphi 7. Our application uses the bde to
connect
> to
> mssql and oracle. Now we are using nvarchar and ntext in our mssql
database
> to
> store unicode data. if we connect to this database with ado and select
some
> data we receive
> the data very slow. we have a select
>
> SELECT FIELD1, FIELD2 FROM TABLE1 WHERE ID = :Id)
>
> FIELD1 = nvarchar(255)
> FIELD2 = ntext
> Id = integer
>
> which is executed one thousand times in a loop. The complete loop takes
> about 70 seconds!!!
> with bde it takes 7 seconds. if we connect to a database without nvarchar
it
> takes about 12
> seconds with the bde.
>
> What can we do to increase the performance with ado?
>
> With Oracle we have no speed problems.
>
> Thank you very much for your help,
>
> Sascha
>
>



Relevant Pages

  • ADO and BDE interact on XP SP2?
    ... It uses the BDE ... indirectly to connect to a database. ... also optionally uses ADO to connect directly to the database for ... but of course any built in initialisation will have taken place. ...
    (borland.public.delphi.database.ado)
  • Re: Suggestoins for Local DB to use with Shareware
    ... It was with D3 - I was using the BDE at the time. ... As for my own experience I begin to evalute ADO with Access ... MDB files in D4 just before D5 appeared with built in ADO support what has ... local database engines and I will continue to use it in the future. ...
    (borland.public.delphi.non-technical)
  • Re: BDE -> ADO
    ... your discussion has more encouraged me to switch to ADO ... My database is SQL SERVER 2000, BDE engine, an ERP ...
    (borland.public.delphi.database.ado)
  • Re: ADO and BDE interact on XP SP2? - fixed
    ... Our application was failing when initialising the BDE with Windows XP SP2. ... initialisation before the application code really starts) before BDE ... I've found that removing the ADO components, ... > indirectly to connect to a database. ...
    (borland.public.delphi.database.ado)
  • Re: New IDS Server: 32 or 64bit?
    ... we've been running IDS 7.31 engine on a Linux machine for over ... to IDS 10 on a newmachine and have to decide whether to stay at 32bit ... platform supports both 32bit and 64bit versions of SuSE SLES 10. ... for the database chunks. ...
    (comp.databases.informix)