Last active
August 29, 2015 14:02
-
-
Save abarth500/8fee93102f1672734d29 to your computer and use it in GitHub Desktop.
[CS実験I] テーブルのデータ量を見てみる (インデクス作成後)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --メタデータを保持しているDBへ移動 | |
| use information_schema; | |
| select table_name,data_length,index_length from partitions where table_name='geotag' or table_name='tag'; | |
| --実験用DBへ戻る | |
| use CSexp1DB; | |
| -- ^^^^^^^^これは皆さん個人のデータベース名に読み替えてくださいね。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +------------+-------------+--------------+ | |
| | table_name | data_length | index_length | | |
| +------------+-------------+--------------+ | |
| | geotag | 2111832064 | 707444736 | | |
| +------------+-------------+--------------+ | |
| ※インデクスのために707MBもディスク容量を消費している |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment