Bug #31977 | HIGH_PRIORITY and LOW_PRIORITY modifier don't look working properly. | ||
---|---|---|---|
Submitted: | 31 Oct 2007 8:52 | Modified: | 29 Nov 2007 7:53 |
Reporter: | Mikiya Okuno | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S3 (Non-critical) |
Version: | 4.1, 5.0, 5.1 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | optimizer scheduler priority myisam |
[31 Oct 2007 8:52]
Mikiya Okuno
[31 Oct 2007 8:56]
MySQL Verification Team
SHOW FULL PROCESSLIST output shows that write requests are processed before read requests with HIGH_PRIORITY modifies.
Attachment: show_full_processlist1.txt (text/plain), 15.76 KiB.
[29 Nov 2007 7:21]
Sveta Smirnova
test case
Attachment: bug31977.test (application/octet-stream, text), 1.39 KiB.
[29 Nov 2007 7:52]
Sveta Smirnova
According to http://dev.mysql.com/doc/refman/5.0/en/select.html: HIGH_PRIORITY gives the SELECT higher priority than a statement that updates a table. You should use this only for queries that are very fast and must be done at once. A SELECT HIGH_PRIORITY query that is issued while the table is locked for *reading* runs even if there is an update statement waiting for the table to be free. and to http://dev.mysql.com/doc/refman/5.0/en/insert.html: If you use the LOW_PRIORITY keyword, execution of the INSERT is delayed until no other clients are *reading* from the table. This includes other clients that began reading while existing clients are reading, and while the INSERT LOW_PRIORITY statement is waiting. In provided test table is locking for *writing*. So I close this report as "Not a Bug".
[29 Nov 2007 8:07]
Sveta Smirnova
See also bug #32839