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`;
CREATE TRIGGER `table_before_insert` BEFORE INSERT ON `table`
FOR EACH ROW SET NEW.`date` = NOW()
INSERT INTO `table` (`field1`, `field2`) VALUES (?, ?)
100000x EXECUTE 1, 2 in one connection
What am i doing wrong?
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.