List:General Discussion« Previous MessageNext Message »
From:Gavin Towey Date:October 8 2010 7:33pm
Subject:RE: Federated Tables versus Views
View as plain text  
Neither, really.  You can qualify a table with the database name to operate on tables in
multiple databases on the same host.

Federated is a way of accessing a table's data from a remote instance of mysql.


-----Original Message-----
From: winterbeef@stripped [mailto:winterbeef@stripped] On Behalf Of Wellington Fan
Sent: Friday, October 08, 2010 9:52 AM
To: mysql@stripped
Subject: Federated Tables versus Views

Hello All,

What should I consider when trying to choose between a Federated table and a
View when I have one table's data that I'd like to be available in other
databases on the same host.

My view definition would be something like:

CREATE
    [some options]
VIEW
    [this_db].[this_view] AS

    SELECT
        [some_db].[some_table].*
    FROM
        [some_db].[some_table].*


Are there performance gains to be had, one against the other? Security
concerns? Replication gotchas?

Thanks!

This message contains confidential information and is intended only for the individual
named.  If you are not the named addressee, you are notified that reviewing,
disseminating, disclosing, copying or distributing this e-mail is strictly prohibited. 
Please notify the sender immediately by e-mail if you have received this e-mail by
mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed
to be secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not
accept liability for any loss or damage caused by viruses or errors or omissions in the
contents of this message, which arise as a result of e-mail transmission. [FriendFinder
Networks, Inc., 220 Humbolt court, Sunnyvale, CA 94089, USA, FriendFinder.com
Thread
Federated Tables versus ViewsWellington Fan8 Oct
  • RE: Federated Tables versus ViewsGavin Towey8 Oct