有一个 innodb表,其大小为10 GB (1.31 GB-数据,8.5 GB-索引)。
当我开始放置表格时,过程执行120秒,少于200秒。
缓慢删除表的原因是什么?还是将其推向正确的方向?
命令SHOW ENGINE INNODB状态:
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
1 read views open inside InnoDB
1 RW transactions active inside InnoDB
---OLDEST VIEW---
Read view low limit trx n:o 67277521723
Trx read view will not see trx with id >= 67277521723, sees < 67277521723
Read view individually stored trx ids:
-----------------
Process ID=39136, Main thread ID=139658753697536, state: enforcing dict cache limit
Number of rows inserted 3578198296, updated 1633874218, deleted 240931374, read 1598497576800
0.04 inserts/s, 0.00 updates/s, 0.00 deletes/s, 133.77 reads/s
操作系统:Ubuntu 16.04.4 LTS 硬件:英特尔(R)至强(R)W-2145 CPU @ 3.70GHz,RAM 256 GB,仅SSD
全局变量:
version 5.7.21-20-log (Percona Server (GPL), Release '20', Revision 'ed217b06ca3')
innodb_adaptive_flushing ON
innodb_adaptive_flushing_lwm 10
innodb_adaptive_hash_index ON
innodb_adaptive_hash_index_parts 8
innodb_adaptive_max_sleep_delay 150000
innodb_api_bk_commit_interval 5
innodb_api_disable_rowlock OFF
innodb_api_enable_binlog OFF
innodb_api_enable_mdl OFF
innodb_api_trx_level 0
innodb_autoextend_increment 64
innodb_autoinc_lock_mode 1
innodb_buffer_pool_chunk_size 134217728
innodb_buffer_pool_dump_at_shutdown ON
innodb_buffer_pool_dump_now OFF
innodb_buffer_pool_dump_pct 25
innodb_buffer_pool_instances 64
innodb_buffer_pool_load_abort OFF
innodb_buffer_pool_load_at_startup ON
innodb_buffer_pool_load_now OFF
innodb_buffer_pool_size 171798691840
innodb_change_buffer_max_size 25
innodb_change_buffering all
innodb_cleaner_lsn_age_factor high_checkpoint
innodb_cmp_per_index_enabled OFF
innodb_commit_concurrency 0
innodb_compressed_columns_threshold 96
innodb_compressed_columns_zip_level 6
innodb_compression_failure_threshold_pct 5
innodb_compression_level 6
innodb_compression_pad_pct_max 50
innodb_concurrency_tickets 5000
innodb_corrupt_table_action assert
innodb_file_format Barracuda
innodb_file_format_check ON
innodb_file_format_max Barracuda
innodb_file_per_table ON
innodb_fill_factor 100
innodb_flush_log_at_timeout 1
innodb_flush_log_at_trx_commit 2
innodb_flush_method O_DIRECT
innodb_flush_neighbors 1
innodb_flush_sync ON
innodb_flushing_avg_loops 30
innodb_force_load_corrupted OFF
innodb_force_recovery 0
innodb_ft_aux_table
innodb_ft_cache_size 8000000
innodb_ft_enable_diag_print OFF
innodb_ft_enable_stopword ON
innodb_ft_ignore_stopwords OFF
innodb_ft_max_token_size 84
innodb_ft_min_token_size 3
innodb_ft_num_word_optimize 2000
innodb_ft_result_cache_limit 2000000000