Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What kind of index is best?
Message
De
21/11/1999 17:53:12
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00293722
Message ID:
00293745
Vues:
18
As for the primary key, Carl and Ed have given you the standard suggestion of using integer primary keys.

As for other indices (I'm not sure whether you are asking in general also), go ahead and have a compound index if it's a common way to look at the data. The index will be used in Rushmore optimization.

>What do you think is best to use in a VFP project when it comes to character indexes or integer indexes? If you use a integer it is very easy to just generate next key. But some times you need a compound index as in browsing items on an invoice. Then I will need a index like Str(invoice_id)+Str(item_id), which is not so easy and fast? to use.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform