12.07.2015 Views

Deadly Sins of MySQL Operations

Deadly Sins of MySQL Operations

Deadly Sins of MySQL Operations

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Detec8ng Duplicate Indexes • Use pt-duplicate-key-checker to report: # ################################################################# test.Foo# ################################################################# x is a left-prefix <strong>of</strong> x_2# Key definitions:# KEY `x` (`x`),# KEY `x_2` (`x`,`y`),# Column types:# `x` int(11) default null# `y` int(11) default null# To remove this duplicate index, execute:ALTER TABLE `test`.`Foo` DROP INDEX `x`;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!