explain.depesz.com

PostgreSQL's explain analyze made readable

Result: UXZU

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.000 ↓ 0.0

Sort (cost=144,137.18..144,137.23 rows=20 width=200) (actual rows= loops=)

  • Sort Key: car.car_dt_movimento DESC, car.car_dt_bom_para
2. 0.000 0.000 ↓ 0.0

Nested Loop Anti Join (cost=1.42..144,136.75 rows=20 width=200) (actual rows= loops=)

  • Join Filter: (cartao_edi.cae_cd_cartao = car.car_cd_cartao)
3. 0.000 0.000 ↓ 0.0

Nested Loop (cost=0.99..144,133.65 rows=20 width=175) (actual rows= loops=)

4. 0.000 0.000 ↓ 0.0

Nested Loop (cost=0.43..1,629.68 rows=415 width=20) (actual rows= loops=)

5. 0.000 0.000 ↓ 0.0

Index Scan using administradora_pkey on administradora adm (cost=0.28..334.21 rows=7,702 width=24) (actual rows= loops=)

6. 0.000 0.000 ↓ 0.0

Index Scan using administradora_edi_pkey on administradora_edi ade (cost=0.15..0.17 rows=1 width=4) (actual rows= loops=)

  • Index Cond: (ade_cd_administradora_edi = adm.adm_cd_administradora_edi)
  • Filter: (ade_cd_gestora = 1)
7. 0.000 0.000 ↓ 0.0

Index Scan using cartao_idx_administradora on cartao car (cost=0.56..343.37 rows=1 width=159) (actual rows= loops=)

  • Index Cond: (car_cd_administradora = adm.adm_cd_administradora)
  • Filter: (((car_ds_autorizacao)::text ~~* '%310839%'::text) AND (car_cd_cartao <> '-1'::integer) AND (car_cd_unidade_negocio = 144))
8. 0.000 0.000 ↓ 0.0

Materialize (cost=0.43..2.65 rows=1 width=4) (actual rows= loops=)

9. 0.000 0.000 ↓ 0.0

Index Scan using cartao_edi_unidade_dt_movimento_tm_movimento on cartao_edi (cost=0.43..2.65 rows=1 width=4) (actual rows= loops=)

  • Index Cond: (cae_cd_unidade_negocio = 144)