VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 General help me questions
 Bulk Delete Orders
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

14 Posts

Posted - December 07 2009 :  18:49:24  Show Profile  Reply with Quote
We have over 8000 orders on our database, which is causing it to run slow.

Is there away of bulk deleting the first 6000 orders without having to go thru and check each box to delete the order?


VP-ASP Expert

United Kingdom
948 Posts

Posted - December 08 2009 :  04:08:19  Show Profile  Reply with Quote

for future reference you should always keep a copy of your orders and oitems table. In this country I think 7 years of records must be kept for tax and excise purposes. If you are using an Access database you could use VP-ASP's split database option to store your orders in a separate database. You will have to create the new database, copy the orders, oitems, mycompany, ordertracking and shoprma tables over and set your configuration xorderdb field to the name of your new database. This option would be far better than deleting order records.


Go to Top of Page

Senior Member

United Kingdom
1898 Posts

Posted - December 08 2009 :  07:05:55  Show Profile  Visit devshb's Homepage  Reply with Quote
I'd agree with carrol on that one; best not to delete orders if you can avoid it.
I think the main question is which bit's slow, and why's it slow.
Even with an access database 8000 rows is quite small and shouldn't cause a problem; it sounds like there's some kind of indexing issue.
If, on the other hand, you're wanting to bulk-delete orders which were never paid in the first place (ie people who got as far as shopcreateorder but then gave up) then that's a different issue, and can be done via a few sql commands (be careful if doing that; you'd need to also delete the orphaned records too)
Either way, take an export/backup before you delete/move anything.

Simon Barnaby
[email protected]
Web Design, Online Marketing and VPASP addons

Edited by - devshb on December 08 2009 07:07:47
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000