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

MySQL Federated storage engine vs replication (performance)

$
0
0

Long story short - I am dealing with a largish database where basic user details (userid (index), username, password, parent user, status) are stored in one database and extended user details (same userid (index), full name, address etc. etc.) are stored in another database on another server.

I need to do a query where I select all users owned by a particular user (via the parent user field from basic user details database), sorted by their full name (from the extended user details field) and just 25 at a time (there are thousands, maybe tens of thousands for any one user).

As far as I can work out there are three possible solutions;

  1. No JOIN - get all the user IDs in one query and run the second query based on those IDs. This would be fine, except the number of user IDs could get so high that it would exceed the maximum query length, or be horribly inefficient.

  2. Replicate the database table with the basic user details onto the server with the extended details so I can do a JOIN

  3. Use a federated storage engine table to achieve the same results as #2

It seems that 3 is the best option, but I have been able to find little information about performance and I also found one comment to be careful using this on production databases.

I would appreciate any suggestions on what would be the best implementation.

Thanks!


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>