Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Commonly misused and abused VFP features
Message
 
À
03/01/2000 17:09:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00310951
Message ID:
00311955
Vues:
36
Hi Mike,

>This stuff about SET FILTER got me wondering last night how SET DELETED ON works. I figured that it is really an internal SET FILTER. Does anyone now for sure? If the case, should you avoid SET DELETED ON? Wouldn't that slow it down abit?

Phew, and again. :)

Yes, SET DELETED ON is an internal filter, just like SET FILTER. It is evaluated like any other filter. This means, VFP first tries to optimize it via Rushmore (if SET OPTIMIZE is ON) and if that doesn't work, evaluates every record against this expression. If SET DELETED can't be resolved with Rushmore, it's evaluated after all optimizable expressions have been applied, ie. against the result set created by optimizable expressions.

>And without starting another thread, what is the final desicion on the DELETED() index expression, does that speed up SET DELETED ON?.

It does for count operations and filtered cursors, but nothing else.

Christof
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform