<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Prefix-Index on Laily&#39;s Note</title>
    
    
    
    <link>/tags/prefix-index/</link>
    <description>Recent content in Prefix-Index on Laily&#39;s Note</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <lastBuildDate>Tue, 29 Dec 2020 11:28:40 +0800</lastBuildDate>
    
	<atom:link href="/tags/prefix-index/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>MySQL 的前缀索引和索引选择性</title>
      <link>/post/mysql/prefix-index/</link>
      <pubDate>Tue, 29 Dec 2020 11:28:40 +0800</pubDate>
      
      <guid>/post/mysql/prefix-index/</guid>
      <description>
        
          
          
          
        
        
        
          &lt;h1 id=&#34;mysql-的前缀索引和索引选择性&#34;&gt;
  MySQL 的前缀索引和索引选择性
  &lt;a href=&#34;#mysql-%e7%9a%84%e5%89%8d%e7%bc%80%e7%b4%a2%e5%bc%95%e5%92%8c%e7%b4%a2%e5%bc%95%e9%80%89%e6%8b%a9%e6%80%a7&#34; class=&#34;h-anchor&#34; aria-hidden=&#34;true&#34;&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;有时候需要索引很长的字符列，这会让索引变的大且慢。通常选择索引列开始的部分字符，这样大大减少了索引空间，但这样又会导致索引选择性降低，影响查询效率，所以需要一个权衡。&lt;/p&gt;
          
        
        </description>
    </item>
    
  </channel>
</rss>