Last active
August 29, 2015 14:02
-
-
Save abarth500/dbbfe2809247884e2ce1 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 | 1180311552 | 183001088 | | |
| | tag | 1002242048 | 297779200 | | |
| +------------+-------------+--------------+ | |
| ※data_lengthがテーブルの大きさ | |
| ※index_lengthがインデクスの大きさ | |
| ※単位はbyte |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment