dbfs on Network : wich performance method?

User avatar
Silvio.Falconi
Posts: 7184
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 9 times

Re: dbfs on Network : wich performance method?

Post by Silvio.Falconi »

Enrico Maria Giordano wrote:Can you send me the DBF and the CDX to reproduce the problem here, please?

EMG

SENT
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Enrico Maria Giordano
Posts: 8769
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 6 times
Contact:

Re: dbfs on Network : wich performance method?

Post by Enrico Maria Giordano »

Ok, thank you. As you can check for yourself, the CDX contains a tag with "id" key. So it's just a corrupted CDX. Please delete it, rebuild it and let me know.

EMG
User avatar
Silvio.Falconi
Posts: 7184
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 9 times

Re: dbfs on Network : wich performance method?

Post by Silvio.Falconi »

I erase the cdx.
then I run the test made from James
it create the cdx
then open emagdbu , open customer database
Open the cdx and set the tag id
the same
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Enrico Maria Giordano
Posts: 8769
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 6 times
Contact:

Re: dbfs on Network : wich performance method?

Post by Enrico Maria Giordano »

The example from James is not valid for your customer.dbf because it builds the wrong tag:

Code: Select all | Expand

Index on "id" tag "custno" to customer


Your customer.dbf doesn't have a field named "id".

EMG
User avatar
Silvio.Falconi
Posts: 7184
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 9 times

Re: dbfs on Network : wich performance method?

Post by Silvio.Falconi »

yes of cource but...

why the code ( test.prg) compiled create the cdx if is not valid ?
we Know it's is not valid but the exe crete the cdx
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
James Bott
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: dbfs on Network : wich performance method?

Post by James Bott »

Sorry if I sent the wrong customer file. It is disconcerting that the CDX was created without any error message. That would be hard to track down as we have just seen.

Silvio, were you able to get the sample to run now?

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
Silvio.Falconi
Posts: 7184
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 9 times

Re: dbfs on Network : wich performance method?

Post by Silvio.Falconi »

James,

I wanted understand why the command :

Code: Select all | Expand

Index on "id" tag "custno" to customer


create the cdx and not make error

It seem we can index any field not exist into a dbf ... :)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Enrico Maria Giordano
Posts: 8769
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 6 times
Contact:

Re: dbfs on Network : wich performance method?

Post by Enrico Maria Giordano »

I just realized that this syntax is uncorrect:

Code: Select all | Expand

Index on "id" tag "custno" to customer


The correct one is:

Code: Select all | Expand

Index on id tag "custno" to customer


Or, even better:

Code: Select all | Expand

Index on FIELD -> id tag "custno" to customer


EMG
User avatar
James Bott
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: dbfs on Network : wich performance method?

Post by James Bott »

Enrico,

Thanks for finding that.

I did a search of all my source and I did find a couple of other times I used quotes. It would be nice if this generated an error. I must have been going nuts trying to figure out why those indexes weren't working.

Enrico, would this be a (x)Harbour issue. If so, would you mind reporting it?

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
Enrico Maria Giordano
Posts: 8769
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 6 times
Contact:

Re: dbfs on Network : wich performance method?

Post by Enrico Maria Giordano »

This is not a bug. Is perfectly legal to build an index on a constant key:

Code: Select all | Expand

INDEX ON .T. TO TEST


EMG
User avatar
James Bott
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: dbfs on Network : wich performance method?

Post by James Bott »

Ok. I am curious of what use that would be?
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Post Reply