explain.depesz.com

PostgreSQL's explain analyze made readable

Result: OuRf

Settings
# exclusive inclusive rows x rows loops node
1. 0.004 84.320 ↓ 6.0 6 1

Group (cost=32,457.39..32,457.40 rows=1 width=643) (actual time=84.317..84.320 rows=6 loops=1)

  • Group Key: dl.name, dlitem.id
2. 0.008 84.316 ↓ 6.0 6 1

Sort (cost=32,457.39..32,457.39 rows=1 width=643) (actual time=84.316..84.316 rows=6 loops=1)

  • Sort Key: dlitem.id
  • Sort Method: quicksort Memory: 26kB
3. 0.022 84.308 ↓ 6.0 6 1

Nested Loop (cost=23.43..32,457.38 rows=1 width=643) (actual time=0.507..84.308 rows=6 loops=1)

  • Join Filter: (dl.id = dlgc.data_list_id)
  • Rows Removed by Join Filter: 180
4. 49.330 83.638 ↓ 6.0 6 1

Nested Loop Semi Join (cost=23.43..32,427.45 rows=1 width=651) (actual time=0.501..83.638 rows=6 loops=1)

  • Join Filter: ((((doc.content -> 'model'::text) -> (dl.name)::text) ->> 'acronym'::text) = ((dlitem.content -> 'properties'::text) ->> 'acronym'::text))
  • Rows Removed by Join Filter: 124,313
5. 0.030 3.872 ↓ 7.0 7 1

Nested Loop (cost=23.43..676.58 rows=1 width=651) (actual time=0.275..3.872 rows=7 loops=1)

6. 2.274 3.768 ↑ 1.4 37 1

Hash Join (cost=23.14..656.21 rows=51 width=651) (actual time=0.142..3.768 rows=37 loops=1)

  • Hash Cond: (dlitem.data_list_id = dl.id)
7. 1.388 1.388 ↑ 1.0 20,511 1

Seq Scan on data_list_item dlitem (cost=0.00..555.57 rows=20,557 width=631) (actual time=0.004..1.388 rows=20,511 loops=1)

8. 0.001 0.106 ↑ 3.0 1 1

Hash (cost=23.10..23.10 rows=3 width=20) (actual time=0.106..0.106 rows=1 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
9. 0.105 0.105 ↑ 3.0 1 1

Seq Scan on data_list dl (cost=0.00..23.10 rows=3 width=20) (actual time=0.006..0.105 rows=1 loops=1)

  • Filter: ((name)::text = 'trecho'::text)
  • Rows Removed by Filter: 1,243
10. 0.074 0.074 ↓ 0.0 0 37

Index Scan using "data_list_itemPK" on data_list_item dlitemparent (cost=0.29..0.39 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=37)

  • Index Cond: (id = dlitem.parent_id)
  • Filter: ((content -> 'properties'::text) = '{"name": "Seccionamento", "acronym": "SC"}'::jsonb)
  • Rows Removed by Filter: 1
11. 30.436 30.436 ↑ 6.9 17,760 7

Seq Scan on document doc (cost=0.00..14,340.75 rows=122,775 width=658) (actual time=0.001..4.348 rows=17,760 loops=7)

12. 0.648 0.648 ↑ 1.2 31 6

Seq Scan on data_list_config_item_group dlgc (cost=0.00..29.45 rows=38 width=8) (actual time=0.003..0.108 rows=31 loops=6)

  • Filter: (config_item_group_id = 104)
  • Rows Removed by Filter: 1,213
Planning time : 0.400 ms
Execution time : 84.364 ms