MySQL Forums
Forum List  »  MySQL Workbench

Faster/more reliable way to delete millions of rows?
Posted by: Alex Duke
Date: June 16, 2017 12:42AM

Hello! I'm in the process of working on an independent study project for one of my professors at CSUF, and have been requested to import a huge database dump (>40,000,000 rows of data) and do some work with it. I'm attempting to use a delete where one of the columns doesn't equal zero,

delete from table
where column <> 0;

and it's taking forever, and I've been running into issues and having to restart the query. Is there a better way?


Options: ReplyQuote

Written By
Faster/more reliable way to delete millions of rows?
June 16, 2017 12:42AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.