Enterprise Java Development@TOPIC@

Chapter 82. H2 Execution Plans

82.1. Column Index
82.2. Summary



Figure 82.3. Explain Plan: Where Column Indexed

PLAN  
SELECT
    M.TITLE,
    ROLE.MOVIE_ROLE
FROM PUBLIC.QUERYEX_MOVIEROLE ROLE
    /* PUBLIC.MOVIEROLE_ROLE_MOVIE_IDX: MOVIE_ROLE = 'Chip Diller' */
    /* WHERE ROLE.MOVIE_ROLE = 'Chip Diller'
    */
INNER JOIN PUBLIC.QUERYEX_MOVIE M
    /* PUBLIC.PRIMARY_KEY_C7B: ID = ROLE.MOVIE_ID */
    ON 1=1
WHERE (ROLE.MOVIE_ID = M.ID)
    AND ((M.RATING = 'R')
    AND (ROLE.MOVIE_ROLE = 'Chip Diller'))