How to speed up Refresh
Posted: Wed 26 Oct 2011 17:10
Dear all,
I`m working with Delphi XE, UniDac 4.0.2, MsSQL 2005 and a special lookupcombo. This Lookup is linked with a TUniQuery
The Table has about 800.000 records. The Query I edit the datas is linked with the Option MasterSource to the above query. This construct is working well. No difference if I delete the MasterSource.
To work always with the current datas I have to make a resfresh of the lookup query f.e. after an insert. Better I make a refresh every time if I enter the Lookup as also other workingstation could insert datas.
The problem is, that such a refresh needs at my customer 16 sec. At my PC with local DB it needs 2,5 sec.
Is there any chance to speed up the refresh. Is there no intelligence, which makes an refresh only if datas has changend and also refresh only the changed datas to minimice the traffic on the network?
Some settings:
Gerd
I`m working with Delphi XE, UniDac 4.0.2, MsSQL 2005 and a special lookupcombo. This Lookup is linked with a TUniQuery
Code: Select all
SELECT ID, SerNr, Typ, Dat
FROM Ser_Nr
ORDER BY SerNr, DatTo work always with the current datas I have to make a resfresh of the lookup query f.e. after an insert. Better I make a refresh every time if I enter the Lookup as also other workingstation could insert datas.
The problem is, that such a refresh needs at my customer 16 sec. At my PC with local DB it needs 2,5 sec.
Is there any chance to speed up the refresh. Is there no intelligence, which makes an refresh only if datas has changend and also refresh only the changed datas to minimice the traffic on the network?
Some settings:
best regardsFetchall = true (no different with false)
also the other options on default
No IndexFieldNames (much more slower with Index..)
Gerd