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/dbbfe2809247884e2ce1 to your computer and use it in GitHub Desktop.

Select an option

Save abarth500/dbbfe2809247884e2ce1 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 | 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