Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View too slow - need to use updated table
Message
De
28/09/2016 13:11:36
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01641457
Message ID:
01641461
Vues:
46
>I've created a lookup cursor using a VIEW composed of a UNION but when you first open it, it's too slow. It's a simple union - it's just the vast number of records it's adding creating the slowness (800,000).
>
>Since VFP tables are so much faster, I need to use a table instead. To do that, I need a way to detect when the underlying tables have changed so I can update this lookup table when it's out of date. I'm thinking a RECCOUNT() might be the way to go, or perhaps the file date of the table, or FSIZE(), or the last PK used in the table.
>
>I'm wondering it there's some low-level info in the header of the DBF that I might be able to use...
>
>Any advice?

add timestamps with an index on it (and flag instead of deleting)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform