Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages
Started by Tumurbaatar S.
Wed, 06 Apr 2005 10:21
Improving query speed
Author: Tumurbaatar S.
Date: Wed, 06 Apr 2005 10:21
Date: Wed, 06 Apr 2005 10:21
12 lines
1342 bytes
1342 bytes
To improve speed of two TADOQuery comp-s linked as master-detail, I changed some default values of them: CacheSize > 1 (default is 1, but I use 1000) CursorLocation=clUseClient (by default) CursorType=ctStatic (default ctKeyset) LockType=ltReadOnly (default ltOptimistic) Prepared=true (default false) Am I doing right? Anything wrong or more to add? Also I need to minimize a server load and do the most things on a client side, as much as possible. Any suggestions?
Re: Improving query speed
Author: Daniel Stevenson
Date: Thu, 12 May 2005 07:57
Date: Thu, 12 May 2005 07:57
40 lines
2657 bytes
2657 bytes
I could be asnwering something totally different to what you are asking.... but the tests I performed were a while ago, I use two TADOQuerys but rather than creating a second TADOQuery and putting it in master-detail, I rewrote the SQL in the second TADOQuery to reflect the selection within the first TADOQuery. I have a feeling that this was faster than allowing the Queries to perform their own master-detail data filtering. I could be wrong but I think master-detail relationships were good for TADOTables and not TADOQueries. This way you are only extracting from the server the data that is being used at the time that it is required. hmm, I think this may only good if you are wanting to break up the data retreival from the server and not do it all in one big hit...and if you are not using all the data. In my application I use around 100+ tables all with 10,000's of data and gave up on using Master-Detail relationships due the way our application was being used and the delays in using Master-Detail relationships and always recreate the SQL to filter the data related to the first query. I hope this helps. "Tumurbaatar S." <nospam_tumur@magicnet.mn> wrote in message news:4253aa28@newsgroups.borland.com... > To improve speed of two TADOQuery comp-s linked as master-detail, > I changed some default values of them: > > CacheSize > 1 (default is 1, but I use 1000) > CursorLocation=clUseClient (by default) > CursorType=ctStatic (default ctKeyset) > LockType=ltReadOnly (default ltOptimistic) > Prepared=true (default false) > > Am I doing right? Anything wrong or more to add? > Also I need to minimize a server load and do the most things > on a client side, as much as possible. Any suggestions? > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads