Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why for da keymatch() finds da deleted records???
Message
De
14/11/2001 00:15:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00581140
Message ID:
00581310
Vues:
22
I'm having trouble convincing folks but...
searching 1,000,000 times for a match on a table with 1.2million records
keymatch() 5.79 seconds, but ignores deleted records
indexseek(..,.F.) 9.1 seconds and respects deleted records
=seek() 6.78 seconds and respects deleted records.

Good old SEEK is the fastest!

keymatch is fastest but doesn't actually check the deleted status of the found record. The deleted status is a hidden field in the .dbf file. Indexes store the values of all records regardless, since if you SET DELETED OFF you would expect the index to work.


>Hi
>
>I was trying to use keymatch() to prevent duplicate records in my table but it picks up deleted records that have not yet been removed from the table. I can use indexseek() to getaround the problem but was curious as to why keymatch behaves this way???
>
>Awaiting enlightenment
>Geoff Scott
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform