Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 51327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:43:59+00:00 2026-05-10T16:43:59+00:00

I use MySQL in a fairly complex web site (PHP driven). Ideally, there would

  • 0

I use MySQL in a fairly complex web site (PHP driven).

Ideally, there would be a tool I could use that would help me test the SQL queries I am using and suggest better table indexes that will improve performance and avoid table scans.

Failing that, something that will tell me exactly what each query is up to, so I can perform the optimisation myself.

Edit: a simple guide to understanding the output from EXPLAIN … would also be useful.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:44:00+00:00Added an answer on May 10, 2026 at 4:44 pm

    Here’s some info about EXPLAIN (referenced from the High Performance MySQL book from O’Reilly):

    When you run an EXPLAIN on a query, it tells you everything MySQL knows about that query in the form of reports for each table involved in the query.

    Each of these reports will tell you…

    • the ID of the table (in the query)
    • the table’s role in a larger selection (if applicable, might just say SIMPLE if it’s only one table)
    • the name of the table (duh)
    • the join type (if applicable, defaults to const)
    • a list of indexes on the table (or NULL if none), possible_keys
    • the name of the index that MySQL decided to use, key
    • the size of the key value (in bytes)
    • ref shows the cols or values used to match against the key
    • rows is the number of rows that MySQL thinks it needs to examine in order to satisfy the query. This should be kept as close to your calculated minimum as possible!
    • …then any extra information MySQL wishes to convey

    The book is completely awesome at providing information like this, so if you haven’t already, get your boss to sign off on a purchase.

    Otherwise, I hope some more knowledgeable SO user can help 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 109k
  • Answers 109k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Have you added a "locale" directory containing an "en_US" directory… May 11, 2026 at 9:27 pm
  • Editorial Team
    Editorial Team added an answer Perhaps you could try adding an event parameter to your… May 11, 2026 at 9:27 pm
  • Editorial Team
    Editorial Team added an answer rsync does exactly what you're asking. Well, almost: it doesn't… May 11, 2026 at 9:27 pm

Related Questions

I've been asked to create a fairly straightforward website for a friend. Essentially a
I'm developing a php / mysql application that handles multiple simultaneous users. I'm thinking
Okay, my dilemma is this. I have an admin page that I use to
I have a table of the form CREATE TABLE data { pk INT PRIMARY

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.