Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Speedy Parameterized Views
Message
De
22/04/2000 00:00:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00362443
Message ID:
00362456
Vues:
22
Elgin,

>SELECT *;
> FROM dga;
> WHERE Dga.custid = ?lcCustid
>
>and I find that it still takes nearly a minute to retrieve the records I need. Do I want to do some kind of indexing on these tables? Can I do that without changing the format of the tables? They have to stay in their DOS format as there is still a DOS application being used to update and maintain these tables.

You will want an index on custid in your dba table, but if you need to maintain backward compatibility with Foxpro 2.6, you should create the index tag in Fox 2.6, using
INDEX ON custid TAG custid
.

If you have no 2.6 apps that need to read the files in that format, you can create the index tags in VFP, but that will make them unreadable in 2.6. As long as you create the index tags in 2.6, VFP can read and update them, and your view should populate *much* faster.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform