Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why this DELETE is so slow?
Message
From
23/02/2005 13:59:56
 
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:
00989764
Views:
67
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform