Solved

MySQL Cross Schema Joins

Posted on 2007-03-20
1
509 Views
Last Modified: 2008-01-09
Doing a lot of cross schema joins for some shared data...

SELECT cols FROM schema1.table INNER JOIN schema2.table ...


Just curious if there is any particular caveats to doing this?  Any special indexes that need to be created, any optimization tips...
0
Comment
Question by:mynamebecory2
1 Comment
 
LVL 11

Accepted Solution

by:
dodge20 earned 50 total points
ID: 18758903
Generally the rule of thumb is that any field that you use as a join should have an index. There may be some exceptions, but you are pretty safe doing this. Otherwise no caveats. Pretty standard in databases.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Loading csv or delimited data files to MySQL database is a very common task frequently questioned about and almost every time LOAD DATA INFILE comes to the rescue. Here we will try to understand some of the very common scenarios for loading data …
A lot of articles have been written on splitting mysqldump and grabbing the required tables. A long while back, when Shlomi (http://code.openark.org/blog/mysql/on-restoring-a-single-table-from-mysqldump) had suggested a “sed” way, I actually shell …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now