天天看點

show full columns 和 checking privileges的說明

線上一個資料庫,高并發的。

show processlist 常看到States狀态裡有很多的 show full columns 和 chekcing privileges;

實驗驗證下:

use queues;

set profiling = 1;

show full columns from queuing_wx_qr_table ;

show profiles;

<a href="https://s2.51cto.com/wyfs02/M00/9A/F2/wKiom1lcgmKR8w__AACEt3wtV-M735.png" target="_blank"></a>

原因:

因為show full columns from table_xxx  展示的結果中會列出Privileges列的情況,表裡有多少列就會出現多少次checking permissions檢查。

show full columns from xxx 這個語句會不會造成性能影響,不确定,沒找到相關部落格。

本文轉自 lirulei90 51CTO部落格,原文連結:http://blog.51cto.com/lee90/1944722,如需轉載請自行聯系原作者