> I am currently experiencing a problem with MYSQL where critical INSERTs
into
> my database appear to be held up by reports that are doing SELECTs.
Turns
> out the particular select uses a LIKE '%value%'.  I would think this
results
> in a sequential search of the entire table (400k records) thereby taking
a
> long time.

> Any ideas on how to influence the SELECT so it does not 'lock' out the
> inserts?

Use a different table type? AIUI, MyIsam puts on a read only lock when
doing Selects i.e. other Selects can proceed but not Inserts/Updates. Again
AIUI, BDB offers page locking and InnoDB offers row locking, both of which
would allow your insert to go through soon if not at once.

     Alec Cawley




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to