The HANDLER
statement in MySQL provides a low-level mechanism to directly access storage engine-level functionality, bypassing some of the overhead associated with regular SQL queries. It can be especially useful for traversing a database in high-performance scenarios.
HANDLER
is available for MyISAM
and InnoDB
tables, and can be used as a faster alternative to the SELECT
statement.