22 Jan
2007
Posted in: Technology
By    No Comments

A Note About Indexing

For queries to run efficiently it is important that appropriate indexes be in place. A simple guideline is that all fields referenced in a comparison in a WHERE clause or in the ON clause of a JOIN statement should be indexed. Bear in mind that all primary key fields are automatically indexed, but that foreign keys must have an index added manually.

Well, there you have it. Now that you have witnessed some of the awesome power of SQL, with its greater flexibility and increased capability, it is easy to see why it is the query language of choice for high-end database servers.

So, what do you think?

Spam protection by WP Captcha-Free