MySQL Forums
Forum List  »  MyISAM

Re: how to avoid lock table, wait online
Posted by: Ingo Strüwing
Date: September 05, 2005 04:29AM

I belive that I cannot give useful advice. Please consider to ask in the "Performance" forum again. Just some thoughts:

With MyISAM there is little help against table locks. You could however try to insert and delete a single row at a time only. This will reduce the overall troughput, because of the additional overhead, but you will have thousands of very short locks instead of a single long lock. That way inserts and deletes can run alternately and thus seemingly at the same time.

If your main goal is to avoid that the insert process is blocked, you could try to use INSERT DELAYED.

You could also try to use InnoDB instead of MyISAM. It is able to do row-level locking. With a low isolation level, you might perhaps get around your problem.

Options: ReplyQuote


Subject
Views
Written By
Posted
5092
September 05, 2005 03:41AM
Re: how to avoid lock table, wait online
3119
September 05, 2005 04:29AM
2597
September 05, 2005 01:20PM
2289
September 06, 2005 02:57AM


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.