Bug #37792 | dead lock and slow insert | ||
---|---|---|---|
Submitted: | 2 Jul 2008 3:55 | Modified: | 25 Jul 2008 19:20 |
Reporter: | jove yee | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S5 (Performance) |
Version: | mysql community 5.0.41 | OS: | Windows (XP sp2) |
Assigned to: | Mikhail Izioumtchenko | CPU Architecture: | Any |
Tags: | insert select on duplicate key update |
[2 Jul 2008 3:55]
jove yee
[2 Jul 2008 5:26]
jove yee
sorry ... the fix i recommended did not fix any issue, the execution speed still reduce a lot even though not more query error. the total records now is 55679 rows. inserting each record takes around 1 second each. Is this the normal speed for such a big table?
[2 Jul 2008 8:49]
Susanne Ebrecht
Many thanks for writing a bug report. Do you enabled strict mode? Which kind of datatyp has the columns where the data will get longer then the limit?
[2 Jul 2008 11:11]
jove yee
the strict mode is enable. currently i still monitoring the updates (still running) . the insert query has no more error, however, execution time increase to about 6 second per insert (14726 or 22967) took more than 5 hours ( 1 single connection ). the field that is over limit (exceeded the size) is varchar. thanks
[2 Jul 2008 11:22]
Susanne Ebrecht
MySQL 5.0.41 is quite old. Please try newer version. At the moment MySQL 5.0.51b is our newest version.
[10 Jul 2008 1:54]
jove yee
dear all i found out the issue after testing the sql query part by part, then i notice it is the MAX() that is giving the server heavy processing ( > 20000 records). after i remove the MAX() it is back to high speed, thanks for your support.