MySQL Forums
Forum List  »  Performance

Re: Performance Tuning Tools
Posted by: Rick James
Date: January 10, 2013 09:08PM

Step 1. Forget most of the complexity of Oracle.

> a SQL area of parsed statements for re-use
No. Parsing is fast enough so that there is little use for such.

> AWR ... Is there an equivalent in MySQL?
The SlowLog is the best tool. (It is much less than what Oracle gives you.)

Learn to use
SHOW CREATE TABLE
SHOW TABLE STATUS
EXPLAIN SELECT

A MySQL DBA can handle perhaps a few dozen separate MySQL servers. The ratio for Oracle is closer to 1:1. (See Step 1)

MySQL, in its simplicity, does not have the smarts to compensate for sloppy schemas and queries. Subqueries and Views, for example, are (in many cases) poorly optimized. The user (DBA / developer) is admonished to use JOINs (etc) instead. This forum is littered with examples of such.

BTree indexing is the best all-around indexing type. It is essentially the only type available in MySQL. Forget Bit, Hash, etc. (See Step 1)

A PRIMARY KEY in InnoDB is UNIQUE and Clustered. Period. (See Step 1)

Options: ReplyQuote


Subject
Views
Written By
Posted
11941
January 09, 2013 04:29AM
Re: Performance Tuning Tools
4604
January 10, 2013 09:08PM
4309
January 18, 2013 03:52AM
2832
January 19, 2013 02:22PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.