<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Obscure MySQL variable explained: max_seeks_for_key</title>
	<atom:link href="http://rackerhacker.com/2007/08/03/obscure-mysql-variable-explained-max_seeks_for_key/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com/2007/08/03/obscure-mysql-variable-explained-max_seeks_for_key/</link>
	<description>Words of wisdom from a server administrator</description>
	<pubDate>Wed, 20 Aug 2008 16:23:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Georgi Kodinov</title>
		<link>http://rackerhacker.com/2007/08/03/obscure-mysql-variable-explained-max_seeks_for_key/#comment-20</link>
		<dc:creator>Georgi Kodinov</dc:creator>
		<pubDate>Fri, 31 Aug 2007 12:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/03/obscure-mysql-variable-explained-max_seeks_for_key/#comment-20</guid>
		<description>hmm : the formula is : 
max_seeks_for_key = &#60;number of records in the table&#62; / &#60;cardinality=number of unique records&#62;.

Stupid HTML :(</description>
		<content:encoded><![CDATA[<p>hmm : the formula is :<br />
max_seeks_for_key = &lt;number of records in the table&gt; / &lt;cardinality=number of unique records&gt;.</p>
<p>Stupid HTML <img src='http://rackerhacker.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Georgi Kodinov</title>
		<link>http://rackerhacker.com/2007/08/03/obscure-mysql-variable-explained-max_seeks_for_key/#comment-19</link>
		<dc:creator>Georgi Kodinov</dc:creator>
		<pubDate>Fri, 31 Aug 2007 12:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2007/08/03/obscure-mysql-variable-explained-max_seeks_for_key/#comment-19</guid>
		<description>Indeed the documentation is not very clear about what max_seeks_for_key is.
Actually it's not the cardinality. It is the number of rows you'll find for a unique value of the key.
So this makes it :
max_seeks_for_key =  / .
What limiting max_seeks_for_key means ? This means that it will still consider indexes that have very low cardinality to be considered otherwise. 
This is why it's not 1000 by default, but rather is set to the MAX_INT, so it can leave the optimizer to decide based on the statistics that it has.</description>
		<content:encoded><![CDATA[<p>Indeed the documentation is not very clear about what max_seeks_for_key is.<br />
Actually it&#8217;s not the cardinality. It is the number of rows you&#8217;ll find for a unique value of the key.<br />
So this makes it :<br />
max_seeks_for_key =  / .<br />
What limiting max_seeks_for_key means ? This means that it will still consider indexes that have very low cardinality to be considered otherwise.<br />
This is why it&#8217;s not 1000 by default, but rather is set to the MAX_INT, so it can leave the optimizer to decide based on the statistics that it has.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
