Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internal functionality of a local view?
Message
De
11/08/1999 08:55:35
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00252451
Message ID:
00252467
Vues:
8
Are you using parameterized views? You should add indexes for the parameters also. For example...

CREATE SQL VIEW v_Junk as ;
select * from bigtable ;
where somefield = ?lcParameter

use v_Junk NODATA

lcParameter = "findthis"

=requery("v_Junk")

If bigtable.dbf has an INDEX ON SOMEFIELD TAG sometag, this query should be as fast as if you did this...

USE bigtable
SET FILTER TO somefield = "findthis"
BROWSE

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform