Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is quicker: delete for or DELETE where?
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01152861
Message ID:
01152906
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
>>If you don't have an index, VFP will have to scan whole table regardless what you do. DELETE-SQL will be even slower because it'll lock/unlock each record.
>>
>If I add the index, what would be better?
USE mytable EXCLUSIVE
SET ORDER TO TAG whatever
LOCATE 
DELETE WHILE tEntered_Date < ldCutoffDate
PACK
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform