Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Prepared statements DO use query cache, but it does have conditions:</p> <ul> <li><a href="http://bugs.mysql.com/bug.php?id=735" rel="nofollow">http://bugs.mysql.com/bug.php?id=735</a></li> <li><a href="http://dev.mysql.com/doc/refman/5.1/en/query-cache-operation.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/query-cache-operation.html</a></li> <li><a href="http://dev.mysql.com/doc/refman/5.5/en/query-cache-operation.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.5/en/query-cache-operation.html</a></li> </ul> <p>From the 5.1 Doc:</p> <blockquote> <p>Before MySQL 5.1.17, prepared statements do not use the query cache. Beginning with 5.1.17, prepared statements use the query cache under certain conditions, which differ depending on the preparation method: </p> <ul> <li>Statements that are issued using the binary protocol using mysql_stmt_prepare() and mysql_stmt_execute(). </li> <li>Statements that are issued using the text (nonbinary) protocol using PREPARE and EXECUTE. See Section 12.6, “SQL Syntax for Prepared Statements”.</li> </ul> </blockquote> <p>Which the 5.5 Doc restates as:</p> <blockquote> <p>Prepared statements that are issued using the binary protocol using mysql_stmt_prepare() and mysql_stmt_execute(), are subject to limitations on caching. Comparison with statements in the query cache is based on the text of the statement after expansion of ? parameter markers. The statement is compared only with other cached statements that were executed using the binary protocol. That is, for query cache purposes, prepared statements issued using the binary protocol are distinct from prepared statements issued using the text protocol. </p> </blockquote>
    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. This table or related slice is empty.
    1. VO
      singulars
      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