MySQL Forums
Forum List  »  Federated Storage Engine

Re: How is a federated table treated by replication?
Posted by: Andrea Cerrito
Date: April 20, 2007 04:03PM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
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.