mysql

MySQL самие большие таблицы

SELECT CONCAT(table_schema, '.', table_name),
      CONCAT(ROUND(table_rows / 1000000, 2), 'M') rows_M,
      CONCAT(ROUND(table_rows / 1000, 2), ' K') rows_K,
      CONCAT(ROUND(table_rows, 2)) rows_all,
      CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA,
      CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') idx,
      CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024  ), 2), 'M') total_size,
      CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024  ), 2), 'G') total_size,
      ROUND(index_length / data_length, 2) idxfrac
FROM   information_schema.TABLES
ORDER  BY data_length + index_length DESC
LIMIT  50;
  • rows – количество записей в таблице
  • data – размер данных таблицы
  • idx – размер индекса таблицы
  • total_size – суммарные размер таблицы
  • idxfrac – часть размера индекса от общего размера таблицы
admin

Recent Posts

vCenter Converter Standalone 9 download

vCenter Converter Standalone 9.0.0 download (далее…)

2 месяца ago

Download Service Pack for ProLiant (SPP) 2026.03 Gen10 and 10 Plus torrent

Service pack for HPE ProLiant Gen10 and 10 Plus (ver 2026.03.00.00) (SPP2026030000.2026_0326.14.iso) Service Pack for…

3 месяца ago

Download Service Pack for ProLiant (SPP) 2026.01 Gen10 and 10 Plus torrent

Service pack for HPE ProLiant Gen10 and 10 Plus (ver 2026.01.00.00) (SPP2026010000.2026_0206.13.iso) Service Pack for…

4 месяца ago

Wireguard on Mikrotik RouterOS 7

# add wg interface /interface/wireguard/add listen-port=51820 mtu=1300 # add ip on wg interface /ip/address/add address=10.100.10.1…

6 месяцев ago

VMware remote console (VMRC) 13 download

VMware remote console (VMRC) 13.0.1 download Last version: VMware Remote Console 13.0.1 | 29 Sept…

7 месяцев ago

Download Service Pack for ProLiant (SPP) 2025.01 Gen10 torrent

Gen10 Service Pack for ProLiant (SPP) Version 2025.01 Service Pack for ProLiant 2025.01 Gen10(P81139_001_gen10spp-2025.01.00.00-SPP2025010000.2025_0119.14.iso 8.22…

1 год ago