Skip to content

Instantly share code, notes, and snippets.

@abarth500
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save abarth500/8fee93102f1672734d29 to your computer and use it in GitHub Desktop.

Select an option

Save abarth500/8fee93102f1672734d29 to your computer and use it in GitHub Desktop.
[CS実験I] テーブルのデータ量を見てみる (インデクス作成後)
--メタデータを保持しているDBへ移動
use information_schema;
select table_name,data_length,index_length from partitions where table_name='geotag' or table_name='tag';
--実験用DBへ戻る
use CSexp1DB;
-- ^^^^^^^^これは皆さん個人のデータベース名に読み替えてくださいね。
+------------+-------------+--------------+
| 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