Board index » delphi » TBDEDataset.Locate in TQuery too slow.
Reshmi Iyer
![]() Delphi Developer |
Fri, 04 Jul 2003 21:22:06 GMT
|
Reshmi Iyer
![]() Delphi Developer |
Fri, 04 Jul 2003 21:22:06 GMT
TBDEDataset.Locate in TQuery too slow.
TBDEDataset.locate is susbstantially slower than TTable.FindKey.
I am looking for a replacement for the locate function which uses Because of the complexity of the code we cannot re-engineer therefore Thanks in advance, |
Kevin Frever
![]() Delphi Developer |
Fri, 04 Jul 2003 21:57:05 GMT
Re:TBDEDataset.Locate in TQuery too slow.Reshmi, Use a Where clause in the SQL to find the record you want. Selecting all Good luck, QuoteReshmi Iyer wrote in message <3a62f969_2@dnews>... |
Reshmi Iye
![]() Delphi Developer |
Sat, 05 Jul 2003 19:59:19 GMT
Re:TBDEDataset.Locate in TQuery too slow.Thanks for your suggestion. Unfortunately, we use the TQuery to fill grids so we cannot The query has to support the user scrolling through the grid Whilst I'd like to be able to re-design things we do not have If we could redesign the locate method to be more efficient We are willing to buy in consultancy for this problem if anyone QuoteKevin Frevert wrote in message <3a6301d9$1_2@dnews>... |
Andrew Flower
![]() Delphi Developer |
Sun, 06 Jul 2003 00:39:04 GMT
Re:TBDEDataset.Locate in TQuery too slow.Against which SQL Database are you executing the query ? Using Locate against a result set from a TQuery must initially fetch each Perhaps you could try pre-caching all of the data by going to the last Generally it is up to the database which indexes to use. Quote"Reshmi Iyer" <reshmi.i...@capitaes.co.uk> wrote in message Quote> TBDEDataset.locate is susbstantially slower than TTable.FindKey. |
John Briste
![]() Delphi Developer |
Sun, 06 Jul 2003 05:37:50 GMT
Re:TBDEDataset.Locate in TQuery too slow.The database is SQL Anywhere. We are using grids in our app. which we refresh after a user adds a record. We then need to reposition on the newly added record. Locate is just too TTable.FindKey is very fast. Are there any BDE calls we can make to move to the record quickly. I could determine the releative position of the record in the record set I know there are other ways of getting around this but we really need a QuoteAndrew Flowers wrote in message <941tfk$g...@bornews.inprise.com>... |
Kevin Frever
![]() Delphi Developer |
Wed, 09 Jul 2003 00:11:20 GMT
Re:TBDEDataset.Locate in TQuery too slow.Reshmi, A re-design would be the better solution, but since you don't have the Good luck, QuoteReshmi Iyer wrote in message <3a643786_2@dnews>... |