Skip to content

Commit

Permalink
Site updated: 2024-06-06 12:33:44
Browse files Browse the repository at this point in the history
  • Loading branch information
cwww3 committed Jun 6, 2024
1 parent e6c5c6e commit 8b43610
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 44 deletions.
6 changes: 3 additions & 3 deletions 2021/05/06/mysql-index2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,14 @@ <h3 id="字符串字段加索引"><a href="#字符串字段加索引" class="hea

<p>如果使用的是 index1</p>
<ol>
<li>从 index1 索引树找到满足索引值是’<a href="mailto:&#x7a;&#x68;&#97;&#x6e;&#103;&#x73;&#115;&#120;&#x79;&#x7a;&#64;&#x78;&#x78;&#120;&#46;&#x63;&#111;&#109;">&#x7a;&#x68;&#97;&#x6e;&#103;&#x73;&#115;&#120;&#x79;&#x7a;&#64;&#x78;&#x78;&#120;&#46;&#x63;&#111;&#109;</a>’的这条记录,取得 ID2 的值;</li>
<li>从 index1 索引树找到满足索引值是’<a href="mailto:&#x7a;&#104;&#x61;&#110;&#x67;&#x73;&#115;&#120;&#121;&#122;&#x40;&#120;&#x78;&#x78;&#46;&#99;&#x6f;&#109;">&#x7a;&#104;&#x61;&#110;&#x67;&#x73;&#115;&#120;&#121;&#122;&#x40;&#120;&#x78;&#x78;&#46;&#99;&#x6f;&#109;</a>’的这条记录,取得 ID2 的值;</li>
<li>到主键上查到主键值是 ID2 的行,判断 email 的值是正确的,将这行记录加入结果集;</li>
<li>取 index1 索引树上刚刚查到的位置的下一条记录,发现已经不满足 email=‘<a href="mailto:&#122;&#x68;&#x61;&#110;&#103;&#115;&#x73;&#x78;&#x79;&#122;&#x40;&#x78;&#120;&#x78;&#46;&#99;&#x6f;&#109;">&#122;&#x68;&#x61;&#110;&#103;&#115;&#x73;&#x78;&#x79;&#122;&#x40;&#x78;&#120;&#x78;&#46;&#99;&#x6f;&#109;</a>’的条件了,循环结束。</li>
<li>取 index1 索引树上刚刚查到的位置的下一条记录,发现已经不满足 email=‘<a href="mailto:&#122;&#x68;&#x61;&#110;&#x67;&#x73;&#115;&#120;&#121;&#122;&#64;&#120;&#120;&#120;&#46;&#99;&#111;&#x6d;">&#122;&#x68;&#x61;&#110;&#x67;&#x73;&#115;&#120;&#121;&#122;&#64;&#120;&#120;&#120;&#46;&#99;&#111;&#x6d;</a>’的条件了,循环结束。</li>
</ol>
<p>如果使用的是 index2</p>
<ol>
<li>从 index2 索引树找到满足索引值是’zhangs’的记录,找到的第一个是 ID1;</li>
<li>到主键上查到主键值是 ID1 的行,判断出 email 的值不是’<a href="mailto:&#122;&#104;&#x61;&#110;&#103;&#115;&#115;&#x78;&#x79;&#x7a;&#64;&#x78;&#x78;&#x78;&#46;&#x63;&#x6f;&#109;">&#122;&#104;&#x61;&#110;&#103;&#115;&#115;&#x78;&#x79;&#x7a;&#64;&#x78;&#x78;&#x78;&#46;&#x63;&#x6f;&#109;</a>’,这行记录丢弃;</li>
<li>到主键上查到主键值是 ID1 的行,判断出 email 的值不是’<a href="mailto:&#122;&#x68;&#x61;&#110;&#x67;&#115;&#115;&#120;&#x79;&#x7a;&#64;&#120;&#x78;&#x78;&#46;&#x63;&#111;&#109;">&#122;&#x68;&#x61;&#110;&#x67;&#115;&#115;&#120;&#x79;&#x7a;&#64;&#120;&#x78;&#x78;&#46;&#x63;&#111;&#109;</a>’,这行记录丢弃;</li>
<li>取 index2 上刚刚查到的位置的下一条记录,发现仍然是’zhangs’,取出 ID2,再到 ID 索引上取整行然后判断,这次值对了,将这行记录加入结果集;</li>
<li>重复上一步,直到在 idxe2 上取到的值不是’zhangs’时,循环结束。</li>
</ol>
Expand Down
2 changes: 1 addition & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ pre .javascript .function {
}
.links-of-author a::before,
.links-of-author span.exturl::before {
background: #de262f;
background: #1bdd8f;
border-radius: 50%;
content: ' ';
display: inline-block;
Expand Down
52 changes: 26 additions & 26 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -261,28 +261,28 @@
</url>

<url>
<loc>https://cwww3.github.io/2021/04/10/LRU/</loc>
<loc>https://cwww3.github.io/2021/04/10/coding/</loc>

<lastmod>2021-05-26</lastmod>

</url>

<url>
<loc>https://cwww3.github.io/2021/04/10/coding/</loc>
<loc>https://cwww3.github.io/2021/05/26/hello-world/</loc>

<lastmod>2021-05-26</lastmod>

</url>

<url>
<loc>https://cwww3.github.io/2021/05/26/hello-world/</loc>
<loc>https://cwww3.github.io/2021/04/28/index/</loc>

<lastmod>2021-05-26</lastmod>

</url>

<url>
<loc>https://cwww3.github.io/2021/04/28/index/</loc>
<loc>https://cwww3.github.io/2021/04/10/LRU/</loc>

<lastmod>2021-05-26</lastmod>

Expand All @@ -303,49 +303,49 @@
</url>

<url>
<loc>https://cwww3.github.io/2021/04/24/mysql-log/</loc>
<loc>https://cwww3.github.io/2021/04/10/oauth/</loc>

<lastmod>2021-05-26</lastmod>

</url>

<url>
<loc>https://cwww3.github.io/2021/05/08/mysql-order-by/</loc>
<loc>https://cwww3.github.io/2021/04/08/sort/</loc>

<lastmod>2021-05-26</lastmod>

</url>

<url>
<loc>https://cwww3.github.io/2021/04/10/oauth/</loc>
<loc>https://cwww3.github.io/2021/05/08/mysql-order-by/</loc>

<lastmod>2021-05-26</lastmod>

</url>

<url>
<loc>https://cwww3.github.io/2021/04/08/sort/</loc>
<loc>https://cwww3.github.io/2021/04/18/vim/</loc>

<lastmod>2021-05-26</lastmod>

</url>

<url>
<loc>https://cwww3.github.io/2021/04/18/vim/</loc>
<loc>https://cwww3.github.io/2021/04/24/mysql-log/</loc>

<lastmod>2021-05-26</lastmod>

</url>

<url>
<loc>https://cwww3.github.io/categories/index.html</loc>
<loc>https://cwww3.github.io/tags/index.html</loc>

<lastmod>2021-05-26</lastmod>

</url>

<url>
<loc>https://cwww3.github.io/tags/index.html</loc>
<loc>https://cwww3.github.io/categories/index.html</loc>

<lastmod>2021-05-26</lastmod>

Expand Down Expand Up @@ -403,7 +403,7 @@
</url>

<url>
<loc>https://cwww3.github.io/tags/%E7%AE%97%E6%B3%95/</loc>
<loc>https://cwww3.github.io/tags/Nginx/</loc>
<lastmod>2024-06-06</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
Expand All @@ -416,13 +416,6 @@
<priority>0.6</priority>
</url>

<url>
<loc>https://cwww3.github.io/tags/Nginx/</loc>
<lastmod>2024-06-06</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>

<url>
<loc>https://cwww3.github.io/tags/%E7%BC%96%E7%A0%81/</loc>
<lastmod>2024-06-06</lastmod>
Expand Down Expand Up @@ -472,6 +465,13 @@
<priority>0.6</priority>
</url>

<url>
<loc>https://cwww3.github.io/tags/%E7%AE%97%E6%B3%95/</loc>
<lastmod>2024-06-06</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>

<url>
<loc>https://cwww3.github.io/tags/k8s/</loc>
<lastmod>2024-06-06</lastmod>
Expand All @@ -487,7 +487,7 @@
</url>

<url>
<loc>https://cwww3.github.io/tags/Makefile/</loc>
<loc>https://cwww3.github.io/tags/os/</loc>
<lastmod>2024-06-06</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
Expand All @@ -501,21 +501,21 @@
</url>

<url>
<loc>https://cwww3.github.io/tags/os/</loc>
<loc>https://cwww3.github.io/tags/Makefile/</loc>
<lastmod>2024-06-06</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>

<url>
<loc>https://cwww3.github.io/tags/MongoDB/</loc>
<loc>https://cwww3.github.io/tags/mq/</loc>
<lastmod>2024-06-06</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>

<url>
<loc>https://cwww3.github.io/tags/mq/</loc>
<loc>https://cwww3.github.io/tags/MongoDB/</loc>
<lastmod>2024-06-06</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
Expand Down Expand Up @@ -571,21 +571,21 @@
</url>

<url>
<loc>https://cwww3.github.io/tags/CDN/</loc>
<loc>https://cwww3.github.io/tags/DNS/</loc>
<lastmod>2024-06-06</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>

<url>
<loc>https://cwww3.github.io/tags/DNS/</loc>
<loc>https://cwww3.github.io/tags/%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1/</loc>
<lastmod>2024-06-06</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>

<url>
<loc>https://cwww3.github.io/tags/%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1/</loc>
<loc>https://cwww3.github.io/tags/CDN/</loc>
<lastmod>2024-06-06</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
Expand Down
48 changes: 34 additions & 14 deletions tags/Go/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
<meta name="description" content="Record what you think">
<meta property="og:type" content="website">
<meta property="og:title" content="Cwww3&#39;s Blog">
<meta property="og:url" content="https://cwww3.github.io/tags/Go/index.html">
<meta property="og:url" content="https://cwww3.github.io/tags/go/index.html">
<meta property="og:site_name" content="Cwww3&#39;s Blog">
<meta property="og:description" content="Record what you think">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="Cwww3">
<meta property="article:tag" content="Golang Interview Algorithm">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://cwww3.github.io/tags/Go/">
<link rel="canonical" href="https://cwww3.github.io/tags/go/">


<script id="page-configurations">
Expand All @@ -44,7 +44,7 @@
};
</script>

<title>标签: Go | Cwww3's Blog</title>
<title>标签: go | Cwww3's Blog</title>



Expand Down Expand Up @@ -158,7 +158,7 @@ <h1 class="site-title">Cwww3's Blog</h1>
<div class="post-block">
<div class="posts-collapse">
<div class="collection-title">
<h2 class="collection-header">Go
<h2 class="collection-header">go
<small>标签</small>
</h2>
</div>
Expand All @@ -173,15 +173,35 @@ <h2 class="collection-header">Go

<div class="post-meta">
<time itemprop="dateCreated"
datetime="2022-01-06T00:29:49+08:00"
content="2022-01-06">
01-06
datetime="2022-09-08T00:48:38+08:00"
content="2022-09-08">
09-08
</time>
</div>

<div class="post-title">
<a class="post-title-link" href="/2022/01/06/map/" itemprop="url">
<span itemprop="name">map</span>
<a class="post-title-link" href="/2022/09/08/GC/" itemprop="url">
<span itemprop="name">GO-GC</span>
</a>
</div>

</header>
</article>

<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">

<div class="post-meta">
<time itemprop="dateCreated"
datetime="2022-09-04T20:10:06+08:00"
content="2022-09-04">
09-04
</time>
</div>

<div class="post-title">
<a class="post-title-link" href="/2022/09/04/go-memory/" itemprop="url">
<span itemprop="name">go-memery</span>
</a>
</div>

Expand All @@ -196,15 +216,15 @@ <h2 class="collection-header">Go

<div class="post-meta">
<time itemprop="dateCreated"
datetime="2021-12-31T17:40:02+08:00"
content="2021-12-31">
12-31
datetime="2021-10-09T16:20:17+08:00"
content="2021-10-09">
10-09
</time>
</div>

<div class="post-title">
<a class="post-title-link" href="/2021/12/31/slice/" itemprop="url">
<span itemprop="name">slice</span>
<a class="post-title-link" href="/2021/10/09/go-kit/" itemprop="url">
<span itemprop="name">go-kit</span>
</a>
</div>

Expand Down

0 comments on commit 8b43610

Please sign in to comment.