Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table without PK - do I need one for View?
Message
De
26/10/2001 07:28:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
25/10/2001 12:04:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00573010
Message ID:
00573560
Vues:
40
>OK views make sense for single tables in cases when I cannot find a simple set key version:)
>Cetin

I think you can ALWAYS create an index for a SET KEY TO. The problem is in the sorting. You need different indices for different sort orders (I am thinking about indices with a concatenated expression - the first part would be used to replace a filter; the remainder would control the viewing order). I don't think this would be efficient or practical:

The framework I use creates indices "on-the-fly" when a user double-clicks on a column header. It will even sort on multiple columns (for this, the user Ctrl-clicks on the second, third, etc. column). This definitely requires temporary indices. All this works much faster on a view. As an example, the subset of 100 records I am looking at are indexed quickly with a view. With a filter - or SET KEY - all 60,000 records would have to be indexed.

Hilmar.
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