I've always hated the SET FILTERs slowness.
I have always used different keyed indexes depending on the available option.
CMFILTER, CMCLRFILTER
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
CMFILTER, CMCLRFILTER
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: CMFILTER, CMCLRFILTER
Franco, can you test cmFilter on a large table and give some feedback about the results ? But when you test it make shure there is a relevant index available so cmFilter can do its work.
Theo
Re: CMFILTER, CMCLRFILTER
Theo,
I use index (FOR) not (WHILE), so the relevant index has no effect. If the relevant index is set, then my filtered list is in the relevant index order.
The search goes throgh the whole file, but is still very fast.
Franco
I use index (FOR) not (WHILE), so the relevant index has no effect. If the relevant index is set, then my filtered list is in the relevant index order.
The search goes throgh the whole file, but is still very fast.
Franco
All The Best,
Franco
Canada
Franco
Canada
Re: CMFILTER, CMCLRFILTER
Thanks for testing Franco !
-
- Posts: 683
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
Re: CMFILTER, CMCLRFILTER
Hi Friends:
Some time ago, i modify a code post by LuisVazques, where he show how to speed a search on a big dbf file.-
For best speed on seach procedure i transfer dbf data to an array and with array data i fill a virtualgrid.-
All procedures of searching or sorting in virtualgrid are +10 times highspeed than doing over a dbf phisically.-
Instead seek search on an index taking a priority the first letter of the field, procedure implemented by LuisVazques search a portion of text on each cell, and if that portion is found add array element to the virtualgrid.-
I'm preparing a sample to show the result.-
I have not tested on arrays bigger than 100000 items, but 100000 items is a big number, and up to there works like a charm.
With regards.-
Eduardo
Some time ago, i modify a code post by LuisVazques, where he show how to speed a search on a big dbf file.-
For best speed on seach procedure i transfer dbf data to an array and with array data i fill a virtualgrid.-
All procedures of searching or sorting in virtualgrid are +10 times highspeed than doing over a dbf phisically.-
Instead seek search on an index taking a priority the first letter of the field, procedure implemented by LuisVazques search a portion of text on each cell, and if that portion is found add array element to the virtualgrid.-
I'm preparing a sample to show the result.-
I have not tested on arrays bigger than 100000 items, but 100000 items is a big number, and up to there works like a charm.
With regards.-
Eduardo
Re: CMFILTER, CMCLRFILTER
Eduardo,
i am very curious and looking forward to see your demo.
I am especially curious how you use this in an multi user environment (locking).
Theo
i am very curious and looking forward to see your demo.
I am especially curious how you use this in an multi user environment (locking).
Theo