It goes without saying that crash recovery of busy MySQL servers
(and many other RDBMS for that matter) is not an extremely quick
process. In MySQL context, one of the worst case scenarios is
when the server is used for multi-tenant application hosting i.e.
when the MySQL instance contains hundreds or thousands of schemas
and (tens/hundreds of) thousands of tablespaces. In such
scenario, the server may spend a considerable amount of time in
the tablespace discovery phase, during which MySQL
builds a mapping between tablespace IDs and names of actual
tablespace files on disk.
MySQL 5.7 promises to put an end to tablespace discovery. The
documentation lists the following improvements introduced in
versions 5.7.5 and up:
- Elimination of file system scans prior to redo log application. The MLOG_FILE_NAME redo log …