Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to assign unique key.
Message
From
12/11/1997 17:56:33
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/11/1997 11:02:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00058229
Message ID:
00059814
Views:
32
>>didn't, but I was wrong), someone (Barbara?) suggested that the solution >>may be to Use the table Again under another alias, and do all the >>locomotion in it, not leaving the record in the buffer. > >This has been my practice for validating Social Security numbers. (Well not >really USE AGAIN, but using two aliases of the same table in the DE of the >form that does the checking). It works well, and I notice very little if >any effect in form load. >Supposedly using a table for the second (or third) time is much faster than >the first use, but I have not found this to be significantly true. Many >sources recommend that your application open all needed tables in the >initialization of the app, so all DEs will effectively be using USE AGAIN, >and forms will load faster. But my testing (private datasessions) showed >only about a 15 percent improvement in form load in my more complex (read: >use a lot of cursors) forms. This was just not worth the extra 20-25 >seconds it took the app to load while opening 80+ tables. The practice of opening all the tables at startup was in common use by our local Clipper programmers; due to various user's habits (like leaving the app open while they go to lunch, having bad electricity with lots of brownouts and blackouts), I've always sticked to the practice of closing all the tables whenever I don't need them for the current task, and opening only those I need. Saved me a lot of trouble. I think that using the same table with two aliases is effectively Use Again, so I'm glad to hear it's no big overhead. Seems to be the way to go. >> - how do the (updatable) views behave in this case, can they be Used > >This one I have not tried, but I am curious to know as well. Now I've had to try, and it works. I've opened an updatable view (underlying table is an Excel sheet), and it took a second or two to open (as it always does). I've Used it Again, and it opened in a millisecond. I browsed them both, and changed some value in one of them; it refreshed when I switched to other window. Just nice.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform