Quick And Easy Guide To Speeding Up MySQL for web developers

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Quick And Easy Guide To Speeding Up MySQL for web developers - Presentation Transcript

    1. The Quick and Easy Guide to Speeding up MySQL For Website Developers
    2. The Quick and Easy Guide to Speeding up MySQL
    3. Introduction Presentation for developers who only tune up MySQL when they really have to. Basic steps and good practices for using and speeding up MySQL - so that MySQL will work better for you.
    4. Introduction 90% of the reasons why MySQL is slow is due to bad schema design.. or in other words how the database is setup vs how you use it. MySQL is fast. No really, it is. It just needs some attention every now and then.
    5. Monitoring We use Nagios to monitor MySQL. Some examples.. What you can't measure, you can't improve EXPLAIN SELECT. Some examples.. Benchmarking Whole application or some scripts? Profiling (and slowlog)
    6. Choosing the Right Data Type Int/Decimal/Char/Varchar/..... Text/BLOB Enum/Set DateTime /Timestamp  (..update current_timestamp) Unsigned/Signed Null/Not Null Procedure Analyse()
    7. Choosing the Right Storage Engine MyISAM vs InnoDB Table Locking Vs Row-level Locking Memory Archive CSV
    8. Some MySQL Internals Key Buffer Innodb Buffer Pool Size Query Cache Thread Cache Temp Tables (Memory Vs on-Disk) Optimize tables Partitioning (MySQL 5.1)
    9. Replication Mostly Reads Master-Slave Mostly Writes Master-Master Backups High Availability
    10. Application Side Improvements Storing Duplicate Data De-normalize Stored Results (Summary/Cache Table) Count() in its own Table Stored Conditions Stored Reports Involving the database much more with your application
    11. Application Side Improvements Unix Philosophy - Rule of Representation \"Fold knowledge into data, so program logic can be stupid and robust.\" \"Even the simplest procedural logic is hard for humans to verify, but quite complex data structures are fairly easy to model and reason about.\" John Bently
    12. The End Q&A hope you found  the presentation useful

    + JonathanLJonathanL, 5 months ago

    custom

    427 views, 0 favs, 2 embeds more stats

    A presentation given for PHP West Midlands in March more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 427
      • 410 on SlideShare
      • 17 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 11
    Most viewed embeds
    • 9 views on http://mysqlbarbeque.blogspot.com
    • 8 views on http://www.jonathanlevin.co.uk

    more

    All embeds
    • 9 views on http://mysqlbarbeque.blogspot.com
    • 8 views on http://www.jonathanlevin.co.uk

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories