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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -