Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View too slow - need to use updated table
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
View too slow - need to use updated table
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01641457
Message ID:
01641457
Views:
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?
Kogo Michael Hogan

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

Ideate Web Site
Next
Reply
Map
View

Click here to load this message in the networking platform