Updated on 2025-10-23 GMT+08:00

optimizer_trace

The optimizer_trace view provides information produced by the optimizer tracing capability for traced statements. This view is read-only. All users have the read permission on this view.

Table 1 information_schema.optimizer_trace columns

Name

Type

Description

QUERY

longtext

Not supported. It is always null.

TRACE

longtext

Not supported. It is always null.

MISSING_BYTES_BEYOND_MAX_MEM_SIZE

integer

Not supported. It is always null.

INSUFFICIENT_PRIVILEGES

tinyint

Not supported. It is always null.