Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

MySQL - row filter replication

$
0
0

I've been having a hard time to figure out how to configure distributed database system in MySQL. I have 3 servers, each has the same database model. I have configured them for using replication - so there is 1 Master and 2 Slaves. Everything works fine, but what I want to do next is to "filter" replication data.

Let's say that I have two tables: customers and products. I want to replicate all content of products table to both slaves (and I got this part), but I want to replicate customers from Europe to Slave1 and from Asia to Slave2. So master will contain all information about customers, but slaves only some part of it. How can I achive that?

As far as I know replication itself doesn't support this kind of filtering. I am not sure, but it seems like partitioning is not an answer as well.

Are there any build-in mechanizm in MySQL that may help? If not, how would you resolve this situation?


Viewing all articles
Browse latest Browse all 17268

Trending Articles