Hello,
I use a VT as a sorted list for records.
At first I fill the VT with records by Append method.
I have set IndexFieldNames:='a_key';
If the IndexFieldNames has a value (like 'a_key') adding records takes a lot of time (120 sec).
If the IndexFieldNames has no a value ('') adding records takes a few seconds.
Can I adding records when the IndexFieldNames is empty and then set IndexFieldNames on required fields ?
Will the VT re-sorted after this?
Regards
Michal
VirtualTable indexing
Re: VirtualTable indexing
If the TVirtualTable.IndexFieldNames value is set for sorting, each time when a new record is added or appended, a dataset will be resorted. To avoid wasteful resorting, set IndexFieldNames value blank, add new records, and then return the previous value for IndexFieldNames. The dataset will perform one sorting.
Re: VirtualTable indexing
Hello,
Thank you.
Regards
Michal
Thank you.
Regards
Michal