• Home
  • MySQL
  • PHP
  • Apache
  • About
  • Contact Us
 
 
 
  • MySQL 5.5 Reference Manual
  • MySQL 5.1 Reference Manual
  • MySQL 3.23/4.0/4.1 Manual
  • MySQL 4.0 Russian Manual


MySQL 5.5 Reference Manual :: 7 Optimization
« 6.6.5 Setting Up a MyISAM Table Maintenance Schedule

7.1 Optimization Overview »
Section Navigation      [Toggle]
  • Preface, Notes, Licenses
  • 1 General Information
  • 2 Installing and Upgrading MySQL
  • 3 Tutorial
  • 4 MySQL Programs
  • 5 MySQL Server Administration
  • 6 Backup and Recovery
  • 7 Optimization
    • 7.1 Optimization Overview
    • 7.2 Optimizing SELECT and Other Statements
    • 7.3 Locking Issues
    • 7.4 Optimizing Database Structure
    • 7.5 Optimizing the MySQL Server
    • 7.6 Disk Issues
  • 8 Language Structure
  • 9 Internationalization and Localization
  • 10 Data Types
  • 11 Functions and Operators
  • 12 SQL Statement Syntax
  • 13 Storage Engines
  • 14 High Availability and Scalability
  • 15 MySQL Enterprise Monitor
  • 16 Replication
  • 17 Partitioning
  • 18 Stored Programs and Views
  • 19 INFORMATION_SCHEMA Tables
  • 20 MySQL Performance Schema
  • 21 Connectors and APIs
  • 22 Extending MySQL
  • A MySQL 5.5 Frequently Asked Questions
  • B Errors, Error Codes, and Common Problems
  • C MySQL Change History
  • D Restrictions and Limits
  • Index
  • Standard Index
  • C Function Index
  • Command Index
  • Function Index
  • INFORMATION_SCHEMA Index
  • Transaction Isolation Level Index
  • JOIN Types Index
  • Operator Index
  • Option Index
  • Privileges Index
  • SQL Modes Index
  • Status Variable Index
  • Statement/Syntax Index
  • System Variable Index

Chapter 7. Optimization

Table of Contents     [+/-]

7.1. Optimization Overview     [+/-]
7.1.1. MySQL Design Limitations and Tradeoffs
7.1.2. Designing Applications for Portability
7.1.3. The MySQL Benchmark Suite
7.1.4. Using Your Own Benchmarks
7.2. Optimizing SELECT and Other Statements     [+/-]
7.2.1. Optimizing Queries with EXPLAIN
7.2.2. Estimating Query Performance
7.2.3. Speed of SELECT Queries
7.2.4. WHERE Clause Optimization
7.2.5. Range Optimization
7.2.6. Index Merge Optimization
7.2.7. Condition Pushdown Optimization
7.2.8. Index Condition Pushdown Optimization
7.2.9. IS NULL Optimization
7.2.10. LEFT JOIN and RIGHT JOIN Optimization
7.2.11. Nested-Loop Join Algorithms
7.2.12. Nested Join Optimization
7.2.13. Outer Join Simplification
7.2.14. ORDER BY Optimization
7.2.15. GROUP BY Optimization
7.2.16. DISTINCT Optimization
7.2.17. Optimizing IN/=ANY Subqueries
7.2.18. LIMIT Optimization
7.2.19. Using optimizer_switch to Control the Optimizer
7.2.20. How to Avoid Table Scans
7.2.21. INFORMATION_SCHEMA Optimization
7.2.22. Speed of INSERT Statements
7.2.23. Speed of UPDATE Statements
7.2.24. Speed of DELETE Statements
7.2.25. Other Optimization Tips
7.3. Locking Issues     [+/-]
7.3.1. Internal Locking Methods
7.3.2. Table Locking Issues
7.3.3. Concurrent Inserts
7.3.4. Metadata Locking Within Transactions
7.3.5. External Locking
7.4. Optimizing Database Structure     [+/-]
7.4.1. Make Your Data as Small as Possible
7.4.2. Column Indexes
7.4.3. Multiple-Column Indexes
7.4.4. How MySQL Uses Indexes
7.4.5. The MyISAM Key Cache
7.4.6. The InnoDB Buffer Pool
7.4.7. MyISAM Index Statistics Collection
7.4.8. How MySQL Opens and Closes Tables
7.4.9. Disadvantages of Creating Many Tables in the Same Database
7.5. Optimizing the MySQL Server     [+/-]
7.5.1. How Compiling and Linking Affects the Speed of MySQL
7.5.2. System Factors and Startup Parameter Tuning
7.5.3. Tuning Server Parameters
7.5.4. Controlling Query Optimizer Performance
7.5.5. The MySQL Query Cache
7.5.6. Examining Thread Information
7.5.7. How MySQL Uses Threads for Client Connections
7.5.8. How MySQL Uses Memory
7.5.9. Enabling Large Page Support
7.5.10. How MySQL Uses Internal Temporary Tables
7.5.11. How MySQL Uses DNS
7.6. Disk Issues     [+/-]
7.6.1. Using Symbolic Links

Optimization is a complex task because ultimately it requires understanding of the entire system to be optimized. Although it may be possible to perform some local optimizations with little knowledge of your system or application, the more optimal you want your system to become, the more you must know about it.

This chapter explains different ways to optimize MySQL and provides examples. Remember, however, that there are always additional ways to make the system even faster, although they may require increasing effort to achieve.

Copyright © 1997, 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices
Previous / Next / Up / Table of Contents

User Comments

Top / Previous / Next / Up / Table of Contents
Copyright © 2011, doc0.ru
All rights reserved