home wiki.fukuchiharuki.me
Menu
*参考 [#z2a0dfba]
-EXPLAIN
--http://nippondanji.blogspot.com/2009/03/mysqlexplain.html
-インデックス
--http://dev.mysql.com/doc/refman/4.1/ja/mysql-indexes.html
---左端プリフィックス
--http://hamamuratakuo.blog61.fc2.com/blog-entry-407.html
---インデックスの長さ
--http://dev.mysql.com/doc/refman/4.1/ja/create-index.html
---インデックスの長さを指定する
--http://www.mysqlperformanceblog.com/2006/08/10/using-union-to-implement-loose-index-scan-to-mysql/
---INをUNION ALLで代替
--http://ameblo.jp/udzura/entry-10122301087.html
---UNION ALLしてCOUNTするときの注意
-全文検索
--http://www.tatamilab.jp/rnd/archives/000389.html
---マルチバイト文字対応(4.1.1以降)
-JOIN+ソート
--http://nippondanji.blogspot.com/2009/03/using-filesort.html
--http://dev.mysql.com/doc/refman/5.1/ja/order-by-optimization.html
---ORDER BYについてMySQL公式
-カウント
--http://dev.mysql.com/doc/refman/5.1/ja/information-functions.html
---FOUND_ROWS()
--http://nippondanji.blogspot.com/2010/03/innodbcount.html
---Covering Index
-なんかいろいろ
--http://pagerank.cocolog-nifty.com/blog/mysql/index.html
--http://txqz.net/blog/2006/12/13/0943
--http://hain.jp/index.php/tech-j/2006/12/18/p106

*まとめ [#m107bffe]
-IN句でインデックスを使わないのは複合インデックスのうち先頭のみ
-複合インデックスの順とWHERE句で出現する順は同じでなくてよい
-時間はchar型で