Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which cause is enlarging the tables?
Message
De
15/09/2004 11:16:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00942420
Message ID:
00942431
Vues:
12
>Hi All,
>which is true ? for table desings
>table has etc. 5 column but has 300.000 record
>table has etc. 15 column but has 30.000 record
>
>which is important thing at table desings for prevent table enlarge...
>
>TIA

Both the table size in bytes, and in records, can be a problem in some cases.

The absolute size (bytes) can make you go over the VFP limit of 2 GB. Of course, the disk space itself can also be a problem, but that is usually not much of a problem with today's hard disks.

The number of records can make queries slower. That should not be a serious problem with a good design, but larger tables (with more records) can mean that you need to fine-tune your application better, before it works well enough.

I would try to use standard database normalization most of the time. This often helps you save space, but mainly, your information is more organized.

Another thing that can usually (but not always) save space is to use primary keys without business value: the primary key is an integer (incremented automatically for each record) which the user never sees. (This takes up 4 more bytes in the table where the PK is defined, but usually saves space in other tables where it is used as a FK.) However, once again, the main reason I prefer criterion for using this is usually NOT space savings, but other reasons.

And, if your database is too big, you should seriously consider C/S.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform