0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

mysqlで、partitionごとの行数とディスク使用量(推定)の確認方法

Posted at
select 
TABLE_SCHEMA, 
TABLE_NAME, 
PARTITION_NAME, 
TABLE_ROWS, (DATA_LENGTH + INDEX_LENGTH)/1024/1024/1024 as gb  
from information_schema.partitions 
where TABLE_SCHEMA = database() and TABLE_ROWS > 0 
order by DATA_LENGTH + INDEX_LENGTH desc;
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?