Solved

MySQL Cross Schema Joins

Posted on 2007-03-20
1
512 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

20 Experts available now in Live!

Get 1:1 Help Now