Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why this DELETE is so slow?
Message
 
À
22/02/2005 14:05:58
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:
00989367
Vues:
64
I tried to figure out if the same behaviour would occur on a "simple" delete.
Basically I thought that maybe it does
FOR EACH Record_in_the_Scope
RLOCK()
See if it matches criteria
Update (Delete) if necessary
UNLOCK
ENDFOR
for *any* scope after rushmorizing it.
The idea being that in the "2nd join" case this scope is entire table.
So I tried to execute DELETE on a *partially* optimizable WHERE condition like this one:
DELETE FROM Resource WHERE MainId = 12345 and Type="1"
where MainId is optimizable and Type is not. I thought if I RLOCK the record that matches this criteria by its MainId part but doesn't match its Type part, I would see the same behaviour when VFP would try to attempt a lock because my record is within the optimized part. Well, it didn't...
And of course since DELETE is just an update of a special column, UPDATE command is no different in behaviour.

I don't know what to think now. I mean, other that it is a bug.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform