Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Please run the bellow query and post the results.</p> <pre><code>EXPLAIN SELECT count(*) c FROM full_view WHERE verified &gt; ( DATE (NOW()) - INTERVAL 30 DAY) </code></pre> <p><strong>The long forgotten <a href="http://dev.mysql.com/doc/refman/5.0/en/explain.html" rel="nofollow noreferrer"><code>EXPLAIN</code></a> almost always brings something in! ;</strong>)</p> <hr> <p><strong>Edit 1:</strong><br> This is probably the offensive line: </p> <pre><code>1, 'SIMPLE', 'f', 'ALL', '', '', '', '', 2214, '' </code></pre> <p>The <code>ALL</code> there states that there is a FULL table scan.</p> <p>You can dig further into the <a href="http://www.pythian.com/news/wp-content/uploads/explain-diagram.pdf" rel="nofollow noreferrer"><strong><code>Explain</code> syntax on this diagram</strong></a>.</p> <p>Do try to see where the differences go...</p> <hr> <p><strong>Edit 2:</strong><br> <a href="http://dev.mysql.com/doc/refman/5.0/en/explain-output.html" rel="nofollow noreferrer">This doc will sure make things much clearer on the <code>Explain</code> output. Please check it out.</a></p> <hr> <p><strong>Edit 3:</strong><br> Step-by-step analys of the explain command.</p> <pre><code>1, 'SIMPLE', 'b', 'range', 'updated,verified_index', 'updated', '3', '', 28, 'Using where'` 1 - id SIMPLE - simple select, not using sub-queries b - table name range - only rows that are in a given range are retrieved, using an index updated,verified_index - are both possible keys updated - was the key eventually used 3 - key lenght '' - this is the ref column and would show which columns or constants are compared to the index name in the key column to select rows from the table. 28 - number of rows mysql believes it must examine to execute the query Using where - self explanatory </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload