Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RemoteView slows down
Message
De
07/06/2003 05:42:54
 
 
À
03/06/2003 17:17:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00795929
Message ID:
00797593
Vues:
17
Hi Ramil,

>replace nQty with m.Qty
>if !isnull(m.Rev)
> replace nRev with m.Rev
>endif

If !isnull(m.Rev) is true for more than 5-10% I'ld recode to:

replace nQty with m.Qty, nRev with iif(!isnull(m.Rev), m.Rev, nRev)

This could give quite a boost depending on the data structure.

If nQty is included in ANY index at all, ALWAYS take the one-liner

I'ld also base my PK on a single field, especially when using large dbf's.
Hint: you can build that field according to old keyexpression and won't break any existing code.

Keep the number of other indicices to a minimum.

HTH

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform