Re: Need help to improve innodb performance
Posted by:
Aftab Khan
Date: April 02, 2009 10:19AM
I can see one of your table has foreign key
InnoDB sets shared row-level locks on child or parent records it has to look at. InnoDB checks foreign key constraints immediately; the check is not deferred to transaction commit.
try to disable when you do a batch insert
mysql> SET foreign_key_checks = 0;
batch inserts...
mysql> SET foreign_key_checks = 1;
It speeds up the import operation. Setting foreign_key_checks to 0 can also be useful for ignoring foreign key constraints during LOAD DATA
Subject
Views
Written By
Posted
6234
March 28, 2009 10:10AM
3114
March 29, 2009 11:00PM
3104
March 30, 2009 10:17PM
2840
March 31, 2009 12:20AM
3572
April 02, 2009 01:22AM
2614
April 02, 2009 01:28AM
Re: Need help to improve innodb performance
2921
April 02, 2009 10:19AM
6776
April 17, 2009 03:50PM
3251
April 17, 2009 10:00PM
3091
April 17, 2009 11:26PM
2780
April 18, 2009 05:58PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.