Definition
Schema tuning is the activity of organizing a set of table designs in order to improve overall query and update performance.
Historical Background
Table design entails deciding which tables to implement and which attributes to put in those tables. Other sections of this encyclopedia (design theory, normalization theory) discuss a mathematical model of table design to eliminate redundancy. Sometimes however redundancy can be good for performance, so database tuners must consider the possibility of a principled incorporation of redundancy.
Foundations
Normalization tends to break up the attributes of an application into separate tables. Consider the normalized schema consisting of two tables:
Blog(blog_id, author_id, title, numreaders) and
Author(author_id, author_city).
If one frequently wants to associate blogs with the city of their authors, then this table design requires a join on author_id for each of these queries. A denormalized alternative is to add author_location to
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Recommended Reading
Celko J. and Joe Celko's. SQL for Smarties: Advanced SQL Programming (3rd Edn.). Morgan Kaufmann, San Fransisco, CA, 2005.
Kimball R. and Ross M. The Data Warehouse Toolkit: The Complete Guide to Dimensional Modeling (2nd Edn.). Wiley, New York, NY, 2002.
Shasha D. and Bonnet P. Database Tuning: Principles, Experiments and Troubleshooting Techniques. Morgan Kaufmann, San Fransisco, CA, 2002.
Tow D. SQL Tuning. OReilly, North Sebastopol, CA, 2003.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2009 Springer Science+Business Media, LLC
About this entry
Cite this entry
Bonnet, P., Shasha, D. (2009). Schema Tuning. In: LIU, L., ÖZSU, M.T. (eds) Encyclopedia of Database Systems. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-39940-9_322
Download citation
DOI: https://doi.org/10.1007/978-0-387-39940-9_322
Publisher Name: Springer, Boston, MA
Print ISBN: 978-0-387-35544-3
Online ISBN: 978-0-387-39940-9
eBook Packages: Computer ScienceReference Module Computer Science and Engineering