General Thread States
737
•
Reading from net
The server is reading a packet from the network.
•
Removing duplicates
The query was using
SELECT DISTINCT
in such a way that MySQL could not optimize away the
distinct operation at an early stage. Because of this, MySQL requires an extra stage to remove all
duplicated rows before sending the result to the client.
•
removing tmp table
The thread is removing an internal temporary table after processing a
SELECT
statement. This state
is not used if no temporary table was created.
•
rename
The thread is renaming a table.
•
rename result table
The thread is processing an
ALTER TABLE
statement, has created the new table, and is renaming it
to replace the original table.
•
Reopen tables
The thread got a lock for the table, but noticed after getting the lock that the underlying table
structure changed. It has freed the lock, closed the table, and is trying to reopen it.
•
Repair by sorting
The repair code is using a sort to create indexes.
•
Repair done
The thread has completed a multi-threaded repair for a
MyISAM
table.
•
Repair with keycache
The repair code is using creating keys one by one through the key cache. This is much slower than
Repair by sorting
.
•
Rolling back
The thread is rolling back a transaction.
•
Saving state
For
MyISAM
table operations such as repair or analysis, the thread is saving the new table state to
the
.MYI
file header. State includes information such as number of rows, the
AUTO_INCREMENT
counter, and key distributions.
•
Searching rows for update
The thread is doing a first phase to find all matching rows before updating them. This has to be done
if the
UPDATE
is changing the index that is used to find the involved rows.
•
Sending data
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), it is often the longest-running state over the lifetime of a given query.
•
setup
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...