[HM] New post at Harbour Magazine

[HM] New post at Harbour Magazine

Postby José Luis Sánchez » Wed Jan 31, 2018 5:41 pm

Nueva entrada en Harbour Magazine, sobre como usar opciones de filtrado en Harbour.
https://medium.com/harbour-magazine/pon ... 6dbb92f275

New post at Harbour Magazine, about how th use filtering options with Harbour.
https://medium.com/harbour-magazine/put ... 240aea74e0

Regards,
José Luis
User avatar
José Luis Sánchez
 
Posts: 556
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España

Re: [HM] New post at Harbour Magazine

Postby Otto » Thu Feb 01, 2018 6:52 am

Hello Luis,
thank you for your post and work.
Maybe you can compare filters to temporary index too.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: [HM] New post at Harbour Magazine

Postby José Luis Sánchez » Fri Feb 02, 2018 7:12 am

Hello Otto,
I think that filters are powerfull than temporary indexes. With filters you can change the index order and the filter remains, and this behavour is very hard to obtain with temporary indexes.

Regards,
José Luis
User avatar
José Luis Sánchez
 
Posts: 556
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España

Re: [HM] New post at Harbour Magazine

Postby Otto » Fri Feb 02, 2018 7:29 am

Hello Luis,
For me filters where always dangerous because you never new if you have set somewhere a filter and then you reused the workspace and got wrong results.
You write in your article that you have a warning build in – which is very good and important.
As creating a temporary dbf-file which the “filtered” result is very fast these days (SSD disks) I use this technique much.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: [HM] New post at Harbour Magazine

Postby James Bott » Sat Feb 03, 2018 3:56 pm

Otto,

For me filters where always dangerous because you never new if you have set somewhere a filter and then you reused the workspace and got wrong results
.

I'm not sure if you meant reusing a database object or reusing a workspace. With database objects you don't ever have to deal with workspaces. You can always open another copy of the same database object--then you don't have those problems.

If you prefer to use the same object, then you should always save and restore it's state (recno(), index, filter, etc.) in the particular routine (function or method) then you won't have those problems either. Save it at the start of the routine and restore it at the end.

However, I don't use filters either--they are just too slow and require extra programming (like the above).

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: [HM] New post at Harbour Magazine

Postby nageswaragunupudi » Mon Feb 05, 2018 7:56 am

I think that filters are powerfull than temporary indexes. With filters you can change the index order and the filter remains, and this behavour is very hard to obtain with temporary indexes.

I too hold the same opinion. But we should know how the RDD optimizes performance with filters.

they are just too slow

This is a very very old story.
Yes, they were slow till Foxpro came up with Rushmore technology long time back. Later comix and six implemented same technology. Present DBFCDX too implements the same. They can be quite fast but we need to understand how the RDD optimizes filters.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: [HM] New post at Harbour Magazine

Postby Enrico Maria Giordano » Mon Feb 05, 2018 6:25 pm

nageswaragunupudi wrote:
they are just too slow

This is a very very old story.
Yes, they were slow till Foxpro came up with Rushmore technology long time back. Later comix and six implemented same technology. Present DBFCDX too implements the same. They can be quite fast but we need to understand how the RDD optimizes filters.


Please can you show a test demonstrating what you stated? I'm sincerely curious to see a SET FILTER that is not unacceptably slow.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 99 guests