c# - Deleting from huge database -
i'm deleting data database 1.8gb big. (through c# app)
the same operation on smaller databases (~600mb) run without problem, on big 1 i'm getting:
lock wait timeout exceeded; try restarting transaction.
will innodb_lock_wait_timeout
fix problem or there way?
i don't think optimizing queries solution, because there no way make them simpler.
i'm deleting parts of data on conditions , relations, not data.
you can split delete statement smaller parts wont timeout.
delete these stuff id 1 1000 ,execute , commit, same ids 10.000 -20.000 , etc..
Comments
Post a Comment