COM+ and ADo and performance.
From: Gürcan YÜCEL (gyucel_at_g-gsoft.com)
Date: 06/12/04
- Next message: RSK: "dbchart"
- Previous message: Arthur Richards: "Re: Write to Access 2000 database - recommendations"
- Next in thread: Jim Albertson: "Re: COM+ and ADo and performance."
- Reply: Jim Albertson: "Re: COM+ and ADo and performance."
- Reply: Vitali Kalinin: "Re: COM+ and ADo and performance."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 12 Jun 2004 18:28:08 +0300
Hi,
Im using D7 ent, COM+ on W2K sp4 installed and MS SQL Server 2000 with
appropriate service packs.
I wrote 3 tier application which business logic on COM+ objects. I simply
used a TADOConnection(ConnectOption=coConnectUnspacified,
CursorLocation=clUseClient, IsolationLevel=ilCursorStability,
KeepConnection=True, Mode=cmUnknown) and TADOQuery
(CursorLocation=clUseClient,
CursorType=clUseClient,CursorType=ctStatic,LockType=ltOptimistic,
MarshalOptions=moMarshalAll, Prepared=False) on server side. There is also
TDataSetProvider(Options=[],ResolveToDataSet=False,
UpdateMode=UpdateWhereAll) that point TADOQuery. In client side
TDCOMConnection connected to COM+ object and
TClientDataSet(FetchOnDemand=True, ObjectView=True,StoreDefs=True) for using
database stuff. There is no transactions used. EveryWhere I used point
queries and there is no more than 5-10 records at a time. Also I used
standart data types (no image, text, ntext etc.) And also column count is
not more than 10.
Everything is work fine when there is small amount of users. But, when
amount of 20-30 users connect to server and begins to insert record it slows
down. I simply write the same query in Query Analyzer. It takes 0.024sec to
execute. But When I execute the same insert query from TClientDataSet, it
takes 3-4 secs.!!!! (Also in select, delete and update it takes 3-4 secs)
There is no batch update. Every time single row.
I cant figure out why. I installed COM+ objects with Query analyzer to test
network speed other than SQL Server machine. The problem is same. Is there
anyone who can help me? (I also write the general VCL properties that I set)
Thanks.
- Next message: RSK: "dbchart"
- Previous message: Arthur Richards: "Re: Write to Access 2000 database - recommendations"
- Next in thread: Jim Albertson: "Re: COM+ and ADo and performance."
- Reply: Jim Albertson: "Re: COM+ and ADo and performance."
- Reply: Vitali Kalinin: "Re: COM+ and ADo and performance."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|