- A.16.1. What types of operations modify secondary indexes and result in change buffering?
- A.16.2. What is the benefit of the InnoDB change buffer?
- A.16.3. Does the change buffer support other types of indexes?
- A.16.4. How much space does InnoDB use for the change buffer?
- A.16.5. How do I determine the current size of the change buffer?
- A.16.6. When does change buffer merging occur?
- A.16.7. When is the change buffer flushed?
- A.16.8. When should the change buffer be used?
- A.16.9. When should the change buffer not be used?
- A.16.10. Where can I find additional information about the change buffer?
A.16.1. | What types of operations modify secondary indexes and result in change buffering? |
| |
A.16.2. |
What is the benefit of the |
Buffering secondary index changes when secondary index pages are not in the buffer pool avoids expensive random access I/O operations that would be required to immediately read in affected index pages from disk. Buffered changes can be applied later, in batches, as pages are read into the buffer pool by other read operations. | |
A.16.3. | Does the change buffer support other types of indexes? |
No. The change buffer only supports secondary indexes. Clustered indexes, full-text indexes, and spatial indexes are not supported. Full-text indexes have their own caching mechanism. | |
A.16.4. |
How much space does |
Prior to the introduction of the
In MySQL 5.6 and later, the
Change buffer pages are not required to persist in the buffer pool and may be evicted by LRU operations. | |
A.16.5. | How do I determine the current size of the change buffer? |
The current size of the change buffer is reported by
Relevant data points include:
For information about monitoring change buffer status, see Section 14.5.2, “Change Buffer”. | |
A.16.6. | When does change buffer merging occur? |
| |
A.16.7. | When is the change buffer flushed? |
Updated pages are flushed by the same flushing mechanism that flushes the other pages that occupy the buffer pool. | |
A.16.8. | When should the change buffer be used? |
The change buffer is a feature designed to reduce random I/O to
secondary indexes as indexes grow larger and no longer fit in
the | |
A.16.9. | When should the change buffer not be used? |
You might consider disabling the change buffer if the entire
data set fits within the | |
A.16.10. | Where can I find additional information about the change buffer? |