Skip navigation links

MySQL Forums :: Performance :: innodb vs myisam in replication


Advanced Search

innodb vs myisam in replication
Posted by: Jasio Stasio ()
Date: October 03, 2012 11:56AM

SLAVE <=== MASTER <===> MASTER ===> SLAVE

CREATE TABLE IF NOT EXISTS `table` (
`field1` int(10) unsigned NOT NULL,
`field2` int(10) unsigned NOT NULL,
`date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

DROP TRIGGER IF EXISTS `table_before_insert`;
DELIMITER //
CREATE TRIGGER `table_before_insert` BEFORE INSERT ON `table`
FOR EACH ROW SET NEW.`date` = NOW()
//
DELIMITER ;

INSERT INTO `table` (`field1`, `field2`) VALUES (?, ?)

100000x EXECUTE 1, 2 in one connection

InnoDB 40q/s
MyISAM 2500q/s

What am i doing wrong?

Options: ReplyQuote


Subject Views Written By Posted
innodb vs myisam in replication 1023 Jasio Stasio 10/03/2012 11:56AM
Re: innodb vs myisam in replication 474 Rick James 10/04/2012 07:40PM


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.