dbfs on Network : wich performance method?

Re: dbfs on Network : wich performance method?

Postby Silvio.Falconi » Wed Oct 31, 2018 1:47 pm

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 November 2023 - January 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
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: dbfs on Network : wich performance method?

Postby Enrico Maria Giordano » Wed Oct 31, 2018 2:00 pm

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
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: dbfs on Network : wich performance method?

Postby Silvio.Falconi » Fri Nov 02, 2018 10:34 am

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 November 2023 - January 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
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: dbfs on Network : wich performance method?

Postby Enrico Maria Giordano » Fri Nov 02, 2018 10:54 am

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

Code: Select all  Expand view  RUN
Index on "id" tag "custno" to customer


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

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

Re: dbfs on Network : wich performance method?

Postby Silvio.Falconi » Fri Nov 02, 2018 11:22 am

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 November 2023 - January 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
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm


Re: dbfs on Network : wich performance method?

Postby James Bott » Fri Nov 02, 2018 3:13 pm

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
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: dbfs on Network : wich performance method?

Postby Silvio.Falconi » Fri Nov 02, 2018 4:30 pm

James,

I wanted understand why the command :

Code: Select all  Expand view  RUN
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 November 2023 - January 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
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: dbfs on Network : wich performance method?

Postby Enrico Maria Giordano » Fri Nov 02, 2018 4:35 pm

I just realized that this syntax is uncorrect:

Code: Select all  Expand view  RUN
Index on "id" tag "custno" to customer


The correct one is:

Code: Select all  Expand view  RUN
Index on id tag "custno" to customer


Or, even better:

Code: Select all  Expand view  RUN
Index on FIELD -> id tag "custno" to customer


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

Re: dbfs on Network : wich performance method?

Postby James Bott » Fri Nov 02, 2018 4:48 pm

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
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: dbfs on Network : wich performance method?

Postby Enrico Maria Giordano » Fri Nov 02, 2018 5:04 pm

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

Code: Select all  Expand view  RUN
INDEX ON .T. TO TEST


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

Re: dbfs on Network : wich performance method?

Postby James Bott » Fri Nov 02, 2018 5:52 pm

Ok. I am curious of what use that would be?
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

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 57 guests