Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random numbers - the most efficient way
Message
 
 
À
09/09/2004 01:13:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00939849
Message ID:
00940507
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform