delphi - Suggestions for caching a dataset -
i'd perform following:
1) open dataset (using tmsquery, sdac devart component)
2) caching content disk (imagine list of cutsomers)
3) next time need open dataset first populate cached data, refresh calling tmsquery.refreshquick method.
in way plan obtain substantial improvement in speed, because don't need retrieve records retrieved in previous application runs.
how can obtain caching? have many datamodules tmsquery, somehow have global routine checks everytime try open tmsquery, if query somehow tagged try restore cache, call refreshquick, in case fails call open.
can please suggest?
(i use delphi 2009 , sdac 4.80)
you can use tclientdataset
, tdatasetprovider
components this, connecting components in way.
tmsquery->tdatasetprovider->tclientdataset
the tclientdataset
alternative persist , retrieve data disk.
see these links more info clientdataset
Comments
Post a Comment