Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random numbers - the most efficient way
Message
 
 
To
09/09/2004 01:13:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00939849
Message ID:
00940507
Views:
19
Al,

>>Most certainly if you have a huge table or slow network based file and only want a few records it's much more time efficient to do something like:

>I don't see how you're handling the case where you might select the same record more than once. Unless you're DELETEing it in TheSampledTable. Otherwise, checking to see if you've already selected a given record can be expensive.

You are right, I didn't. That code fragment wasn't meant to be a total solution, that's why I said "something like". I'd probably do a check for the existence of the PK in the sample and skip the insert if it was already there.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform