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:
01152864
Views:
18
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.

>
>I'd like to delete records in all my stage tables which are prior to the certain date. My colleague suggested to use tEntered_Date field (we don't have an index on this field). I wrote a program using DELETE FOR command and it's still running.. (couple of minutes already).
>
>I'm wondering, what should I do to make it quicker?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform