Bug #712 | slow indexes in 4.0.13 vs. 3.23 | ||
---|---|---|---|
Submitted: | 24 Jun 2003 10:33 | Modified: | 27 Aug 2003 4:43 |
Reporter: | Sergei Golubchik | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S3 (Non-critical) |
Version: | OS: | ||
Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
[24 Jun 2003 10:33]
Sergei Golubchik
[24 Jun 2003 16:06]
Paul Coldrey
Note that this problem also appears to slow down all inserts on indexed tables.
[2 Jul 2003 16:12]
Paul Coldrey
Plus, it appears the table does not be allowing selects to occur while the insert is in progress.
[6 Jul 2003 21:35]
Paul Coldrey
This bug also appears in MySQL 4.1.0-alpha. Further to previous comments, the table is definitely not responding to selects during an insert. The rest of the database is still responsive (ie I can select on other tables within the same database).
[14 Jul 2003 2:49]
Alexey Botchkov
Reason of the bug is found. changeset 1.1517
[19 Jul 2003 2:15]
Alexey Botchkov
Thank you for your bug report. This issue has been fixed in the latest development tree for that product. You can find more information about accessing our development trees at http://www.mysql.com/doc/en/Installing_source_tree.html
[27 Aug 2003 4:43]
Michael Widenius
A couple of last comments to this thread. It's normal with MyISAM tables that inserts blocks selects. If you have long running selects or massive multi-line inserts it's better to move to innodb tables. Note that a lot of speed issues with both MyISAM tables and InnoDB tables can be solved by setting up the caches to use a significant amount of the available memory. The default memory setup used by MySQL is to not take up too much memory as there is probably other applications running on the computer. Especailly when using innodb tables, it's important to set up the innodb_buffer_pool_size to get decent performance with big tables under heavy load. Take a look at distributed my-medium.cnf or my-large.cnf files for some ideas of how to set up buffering. A note about the bug fix; In MySQL 4.0.13 we didn't use caches properly for tables that disk based temporary tables. Please try 4.0.15 when it comes out (should be out VERY soon). Another thing that would be nice to know how the MySQL 4.0 server works on the RedHat 7.3 machine. The bug report #914 seams to indicate that this could be an OS issue and not a MySQL issue. We will continue to work on the #914 bug from here and hope that it also solves this one.