MySQL & InnoDB (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
What is Index Condition Pushdown (ICP) in MySQL?
senior LevelMost AskedDatabases & SQLMySQL
In Simple Words:
Without ICP, the storage engine reads index records, fetches full rows from the clustered index, and sends them to the server layer to evaluate WHERE conditions.
- With ICP (MySQL 5.6+): The server pushes condition evaluation down to the storage engine layer.
- The storage engine checks index columns against the condition before touching the clustered index, eliminating thousands of unnecessary table lookups.