Re: How is a federated table treated by replication?
I tested federated engine in a replicated env, and all insert statement are done N times for each slave.
In my test env, I have a double replica situation, and this is the result:
mysql> describe federated_table;
+-------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+----------------+
| id | int(20) | NO | PRI | NULL | auto_increment |
| name | varchar(32) | NO | MUL | | |
| other | int(20) | NO | MUL | 0 | |
+-------+-------------+------+-----+---------+----------------+
3 rows in set (0.00 sec)
mysql> INSERT INTO `federated`.`federated_table` (`id` , `name` , `other`
) VALUES (NULL , 'pippo', '5253');
mysql> select * from federated_table;
+----+----------------+-------+
| id | name | other |
+----+----------------+-------+
| 1 | pippo | 5253 |
| 2 | pippo | 5253 |
+----+----------------+-------+
2 rows in set (0.00 sec)
It's ok to exclude the table from the replica, but it's not what I want. Any clue?
Andrea Cerrito
Subject
Views
Written By
Posted
9797
April 19, 2006 07:21PM
5598
April 21, 2006 03:27AM
Re: How is a federated table treated by replication?
5284
April 20, 2007 04:03PM
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.