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
- Has thanked: 100 times
- Been thanked: 179 times
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
-
- Posts: 231
- Joined: Tue Jul 15, 2014 6:52 pm
- Location: The Netherlands
- Has thanked: 6 times
- Been thanked: 19 times
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
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
Franco Bushie
Canada
Canada
-
- Posts: 620
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
- Has thanked: 1 time
- Been thanked: 42 times
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