Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it reasonable to have index on DELETED()?
Message
De
21/03/1999 14:03:25
Walter Meester
HoogkarspelPays-Bas
 
 
À
21/03/1999 09:09:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00196021
Message ID:
00200299
Vues:
24
Bela,

>When you have SET DELETED on AND want to make use of the filter capability of the SQL SELECT statement"
>what type of filter capacity?
>I usually SET DELETED ON, and make many SQL SELECT with complex WHERE clauses. Only one of my tables contains deleted records. Should I make tag on deleted() in all table?

When you issue SET DELETE ON and give a command like SELECT * FROM table INTO CURSOR x and you've got a filter on deleted() VFP doesn't execute the query in the normal manner, but just reopens the table and set a filter. I this way the 'query' is executed much faster. But to accomplish this the query must be very simple (SELECT * FROM table WHERE Fully_optimizible_expression).

As these types of queries are fairly rare and mostly unwanted (it doesn't create a cursor in the temp dir so you can't say USE (DBF(Cursorname)) AGAIN ALIAS x.

Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform