Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Projecting table size
Message
De
22/05/2006 07:44:36
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01123890
Message ID:
01123897
Vues:
9
Sergey

That's excellent, thanks.

Kev

>Hi Kevin,
>
>It's easy to calculate Max # of record using HEADER() and RECSIZE() functions
>
>ln2Gb = 2*1024*1024*1024
>USE mytable
>lnMaxRecs = FLOOR( (ln2Gb - HEADER() -1 ) / RECSIZE() )
>
>
>>Been a while since I posted on here, hope everyone is keeping well.
>>
>>I'm writing an app and due to the large amounts of data it's going to be storing I need to be careful about the 2Gb table limit.
>>
>>2 questions really:
>>
>>a) Is it possible to project table-size, if I have a table with say, 4 columns, would I be able to get a "rough" idea of how many records it will populate without reaching the limit?
>>
>>b) Secondly, I want to ensure that the 2Gb limit won't be reached, what's the best way to ensure it doesn't reach it? If there is an answer to question a then I'll keep an eye on the record count, however if this is not possible I'll need some other mecahanism.
>>
>>Thanks
>>Kev
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform