Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why this DELETE is so slow?
Message
De
23/02/2005 13:59:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00988740
Message ID:
00989764
Vues:
75
Hi Sergey,

>If this lock isn't required anyway, why not eliminate it altogether and lock record before deletion only?

1. Who said the lock isn't required?
2. Previous versions of VFP worked this way and no one complained.
3. Record locking refreshes the record from disk. Is it better to look for a JOIN match first given that the record's content may be different after it is locked? If record's content is changed, it may invalidate result of the JOIN operation. Moreover, the record may no longer satisfy the filter condition - the JOIN was done for nothing.

Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform