On Tue, Dec 09, 2003 at 02:18:58PM +0100, David Bordas wrote:
> 
> I've read mysql doc sereval times, but i can't find any varaible that
> specify when the delayed queue was flushed.

Well, I suppose that's because there isn't one. The DELAYED thread
handles that by itself. You don't want it too large because if mysql
crashes while you have rows sat waiting to be written, they're lost.

> If I understand, I can increase delayed_insert_limit for better performance,
> but I should also increase the delayed_queue as well ?

If you increase delayed_insert_limit then you're effectively giving
the DELAYED thread more preferencee to the table; it will write more
rows (once it can, ie there's a phase of time where there's no locks
on the table) in a batch, which potentially makes other selects wait
longer.

Inserting delayed_queue_size means the clients can pile more and more
rows into the DELAYED thread while it gets chance to write. This may
give your clients a bit of a boost, but only if the DELAYED thread
fills up; at a default of 1000, you must be doing a lot of inserts to
reach that. Remember if you have a lot of rows waiting and mysql
crashes, they're lost.

-- 
Chris

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to