FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Size of a NTX File
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Size of a NTX File
Posted: Thu Dec 11, 2008 09:33 AM

I have a dbf file with 20340 records .

When i index this file, the size of the NTX file is not the same
with Clipper 5.2 or FiveWin Xharbour 2.5 and FiveWin Xharbour 7.9

With Clipper 5.2 , the size of the NTX is 987 136
With Fw 2.5 and xharbour, the size is 1 272 320
With Fw 7.9 and xharbour, the size is 950 272

What is wrong ??

Here is the code :

select 0
use facture
index on facture->numfac+facture->fourn+dtos(facture->datefac) to t2
use

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Size of a NTX File
Posted: Thu Dec 11, 2008 08:13 PM

Jack,

There is nothing wrong :-)

NTX files can have empty spaces in their internal nodes. So different RDDs versions can modify the way the NTXs are created, and then you get different NTXs sizes.

What you have to check is that the indexes are working fine. Thats what really matter :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Size of a NTX File
Posted: Thu Dec 11, 2008 08:42 PM

Antonio,
Thanks for this answer .

Is there a compatibility with xharbour 7.9 and 8.10 .

Is it dangerous to use application compiled with different version on
the same dbf and ntx files ?

If i make a do while ! eof() , is there a risk that the number of records
in the index is different ??

Can i use at the same time, on a network, with the same DBF and NTX, application written with Clipper 5 or Fivewin for clipper and
other 32 bits applications Xharbour and fivewin (2.5 7.9 8.10)

Thanks .

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Size of a NTX File
Posted: Thu Dec 11, 2008 09:09 PM

Jack,

This is not an immediate answer to your question, but I'd like to send you a suggestion.

Why don't you use CDX in stead of NTX ?

NTX has the disadvantage that there is a file for every index while all indexes of one DBF-file are combined in just one CDX-file.

But the choice, of course, is up to you.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Size of a NTX File
Posted: Thu Dec 11, 2008 11:58 PM

Jack,

You have to try it by yourself.

The risk is to get a corrupted index, and you can always create it again.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Size of a NTX File
Posted: Fri Dec 12, 2008 02:23 AM
Jack,

>> Is there a compatibility with xharbour 7.9 and 8.10 .
Perhaps you mean FWH version here as xHarbour's is still 1.++?

>>Is it dangerous to use application compiled with different version on the same dbf and ntx files ?
>>If i make a do while ! eof() , is there a risk that the number of records in the index is different ??

As long as both are actually 32-bits program, I normally don't worry.

>>Can i use at the same time, on a network, with the same DBF and NTX, application written with Clipper 5 or Fivewin for clipper and other 32 bits applications Xharbour and fivewin (2.5 7.9 8.10)
Using both 16 and 32 bits programs to simultaneously access/update the same data is something that I'd try to avoid as much as possible as the RDDs are developed by totally different group of people. If you can't avoid it, take note of SET DBFLOCKSCHEME command. You can refer to xHarbour's documentation for a detailed explanation about it.

Hope that helps.
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion