Page 3 of 3

CMFILTER, CMCLRFILTER

Posted: Thu Feb 09, 2017 10:43 pm
by Pablo César
I've always hated the SET FILTERs slowness.

I have always used different keyed indexes depending on the available option.

Re: CMFILTER, CMCLRFILTER

Posted: Thu Feb 09, 2017 11:18 pm
by trmpluym
franco wrote: Thu Feb 09, 2017 9:58 pm Hello to all,
I have never found filters work on large tables. That is why I use temp indexes.
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

Posted: Fri Feb 10, 2017 7:24 pm
by franco
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

Re: CMFILTER, CMCLRFILTER

Posted: Sat Feb 11, 2017 1:01 pm
by trmpluym
Thanks for testing Franco !

Re: CMFILTER, CMCLRFILTER

Posted: Tue Feb 14, 2017 1:49 pm
by EduardoLuis
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

Re: CMFILTER, CMCLRFILTER

Posted: Tue Feb 14, 2017 9:32 pm
by trmpluym
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