Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why this DELETE is so slow?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00988740
Message ID:
00988923
Views:
51
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform