What does it mean when MySQL is in the state “Sending data”?

前端 未结 2 1990
灰色年华
灰色年华 2020-11-28 21:53

What does it mean if the Mysql query:

SHOW PROCESSLIST;

returns \"Sending data\" in the State column?

I imagine it means the quer

2条回答
  •  甜味超标
    2020-11-28 22:28

    In this state:

    The thread is reading and processing rows for a SELECT statement, and sending data to the client.

    Because operations occurring during this this state tend to perform large amounts of disk access (reads).

    That's why it takes more time to complete and so is the longest-running state over the lifetime of a given query.

提交回复
热议问题