When mysql innodb insert or update secondary index page , will at the same time this index page can searched by select
?
Mysql – Can select read index page while modify this page in innodb
innodbMySQL
Related Question
- Mysql – How to make a select statement get blocked
- Mysql – Select query on an index column with gap locking
- Mysql – nnoDB use a clustered index as a covering index
- Mysql – Find MySQL InnoDB index corruption
- Mysql – innodb cache duplication due to os page cache and buffer pool
- Mysql – How does MySql(InnoDB) update secondary non unique index
Best Answer
Yes, that's possible, that's what the change buffer is for. It caches changes to secondary indexes. When data is read via an index and (parts of) the index is in the change buffer, it's read from there. The changes are written to disk periodically.
Read about it in more detail here.
Also creating/dropping/changing an index is possible while selects/insert/updates/deletes can be performed at the same time with online DDL (at least with MySQL >= 5.6).
Read more about it here.