優化Linux下MariaDB查詢速度可從以下方面入手:
innodb_buffer_pool_size
query_cache_size
slow_query_log=1
EXPLAIN
SELECT *
LIMIT
OPTIMIZE TABLE
實施前需備份數據,優先在測試環境驗證優化效果。