<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>excite-takayuki-miura</author_name>
  <author_url>https://blog.hatena.ne.jp/excite-takayuki-miura/</author_url>
  <blog_title>エキサイト TechBlog.</blog_title>
  <blog_url>https://tech.excite.co.jp/</blog_url>
  <categories>
  </categories>
  <description>こんにちは。 エキサイト株式会社の三浦です。 MySQLにおいてIndexは、Selectクエリのパフォーマンス向上のために必要不可欠な要素です。 1Indexに対して1カラムを付けるということであればいいですが、複数カラムを付ける場合、付ける順番によってパフォーマンスが変わってきます。 ここでは、どのような順番で付けるのが良いかについて1つの案を提示します。 Indexとカーディナリティ Indexを貼る際には、カーディナリティを考える必要があります。 例えば、以下のようなArticle（記事）テーブルがあるとします。 id code title category publish_date …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2021%2F04%2F27%2F150029&quot; title=&quot;MySQLにおける、複合Indexを貼る際の良い順番とは - エキサイト TechBlog.&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-04-27 15:00:29</published>
  <title>MySQLにおける、複合Indexを貼る際の良い順番とは</title>
  <type>rich</type>
  <url>https://tech.excite.co.jp/entry/2021/04/27/150029</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
