Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memo file size
Message
De
21/02/2016 08:24:15
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Memo file size
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01631805
Message ID:
01631805
Vues:
59
Hi
Help please,

I have table with memo file (.fpt) 1.5 GB.
I try to reduce it for voiding VFP 2GB file limitation.
The table is log info without user intervention.

I took a look on the memos and I discovered that all rows share the all following:
1. One line (no records with chr(13/10)
2. Maximum length is 65 characters (length of the most rows is 11).
3. The row contain lot of extra spaces, especially in the end

To examine the options for reducing the file without spending few hours for each test, I deleted the vast majority of the dbf file, and I was left with fpt file of 2,500 KB
.
I ran the following code:
use logs exclusive
select logs
scan
cmsg=allt(logs.msg)&&memo
replace msg with cmsg in logs
endscan
The code runs great, but there is one small problem, the size of the fpt file is now 3,800 KB.
Thank you
Chaim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform