Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why this DELETE is so slow?
Message
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:
00988923
Vues:
54
>See SYS(3054) report below.
>I still don't think it has anything to do with Rushmore. It runs fast with one data session. Also if you replace "DELETE cctskrso" with "SELECT *" it also runs fast.
>
>But then again, it doesn't use TaskId tag at all. Unless it is with this command:
>DELETE FROM ccTskRso WHERE TaskId = 10000
>
>I am puzzled...
>
>
>"DELETE cctskRso FROM ccTskrso Join cctask ON ccTskRso.taskid = ccTask.Id WHERE ccTask.cid = 1000
>
>Rushmore optimization level for table cctskrso: none
>Using index tag Cid to rushmore optimize table cctask
>Rushmore optimization level for table cctask: full
>Joining table cctskrso and table cctask using index tag Id"

Andrew, what about flocking the table first?
if flock('ccTskrSo')
    DELETE ...
endif
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform