Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View too slow - need to use updated table
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
View too slow - need to use updated table
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01641457
Message ID:
01641457
Vues:
47
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?
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform