Diman
Admin
 Admin
| Posts: 1495 |  | Karma: 19 |
|
RE: Unable to see Inexes
|
|
Posted: 2005/07/07 17:29 |
|
|
|
|
Hi !
> My concern with the ADQuery is resources... > I do not want ALL that data downloaded to my client
TADTable is subclassed from TADQuery. And is programmed to build SELECT * FROM MyTab query. TADTable will add WHERE clause, if properties MasterSource and MasterFields are assigned.
In TADQuery you have complete control. You should write the query with WHERE clause, filtering record set, exactly as you need at client.
If you want to scroll through large record set on client, and keep memory usage low, then set:
TADQuery.FetchOptions.Mode := fmOnDemand; TADQuery.Unidirectional := True;
Keep in mind, that when Unidirectional = True, you cant use TDBGrid & TADQuery.Prior & TADQuery.First and few other methods.
Regards, Dmitry
|
|