explain.depesz.com

PostgreSQL's explain analyze made readable

Result: yrNL

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 151.967 ↓ 6.0 6 1

Group (cost=1.01..132,568.26 rows=1 width=643) (actual time=0.395..151.967 rows=6 loops=1)

  • Group Key: dl.name, dlitem.id
2. 0.014 151.964 ↓ 6.0 6 1

Nested Loop (cost=1.01..132,568.25 rows=1 width=643) (actual time=0.394..151.964 rows=6 loops=1)

  • Join Filter: (dl.id = dlgc.data_list_id)
  • Rows Removed by Join Filter: 180
3. 9.920 151.506 ↓ 6.0 6 1

Nested Loop Semi Join (cost=1.01..132,541.32 rows=1 width=651) (actual time=0.390..151.506 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: 20,599
4. 0.025 7.032 ↓ 7.0 7 1

Nested Loop (cost=0.57..1,925.77 rows=1 width=651) (actual time=0.245..7.032 rows=7 loops=1)

5. 4.175 6.970 ↑ 1.3 37 1

Nested Loop (cost=0.29..1,906.19 rows=49 width=651) (actual time=0.224..6.970 rows=37 loops=1)

  • Join Filter: (dlitem.data_list_id = dl.id)
  • Rows Removed by Join Filter: 20,474
6. 2.795 2.795 ↑ 1.0 20,511 1

Index Scan using "data_list_itemPK" on data_list_item dlitem (cost=0.29..959.64 rows=20,511 width=631) (actual time=0.005..2.795 rows=20,511 loops=1)

7. 0.000 0.000 ↑ 3.0 1 20,511

Materialize (cost=0.00..23.57 rows=3 width=20) (actual time=0.000..0.000 rows=1 loops=20,511)

8. 0.114 0.114 ↑ 3.0 1 1

Seq Scan on data_list dl (cost=0.00..23.55 rows=3 width=20) (actual time=0.007..0.114 rows=1 loops=1)

  • Filter: ((name)::text = 'trecho'::text)
  • Rows Removed by Filter: 1,243
9. 0.037 0.037 ↓ 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.001..0.001 rows=0 loops=37)

  • Index Cond: (id = dlitem.parent_id)
  • Filter: ((content -> 'properties'::text) = '{"name": "Seccionamento", "acronym": "SC"}'::jsonb)
  • Rows Removed by Filter: 1
10. 13.748 134.554 ↑ 3.0 2,944 7

Materialize (cost=0.43..129,630.64 rows=8,833 width=658) (actual time=0.002..19.222 rows=2,944 loops=7)

11. 10.793 120.806 ↓ 2.3 20,074 1

Nested Loop Semi Join (cost=0.43..128,844.48 rows=8,833 width=658) (actual time=0.014..120.806 rows=20,074 loops=1)

12. 29.717 29.717 ↑ 1.0 20,074 1

Seq Scan on document doc (cost=0.00..14,647.69 rows=20,282 width=666) (actual time=0.006..29.717 rows=20,074 loops=1)

  • Filter: (project_id = 104)
  • Rows Removed by Filter: 102,701
13. 80.296 80.296 ↑ 6.0 1 20,074

Index Scan using vcl_document_id_idx on vcl (cost=0.43..24.33 rows=6 width=8) (actual time=0.004..0.004 rows=1 loops=20,074)

  • Index Cond: (document_id = doc.id)
  • Filter: (((office_id IS NULL) OR (office_id = 119)) AND ((profile_id IS NULL) OR (profile_id = ANY ('{144,155,1492,1948,146,2012,149,147,153,150,1493,2286}'::bigint[]))))
  • Rows Removed by Filter: 3
14. 0.444 0.444 ↑ 1.0 31 6

Seq Scan on data_list_config_item_group dlgc (cost=0.00..26.55 rows=31 width=8) (actual time=0.002..0.074 rows=31 loops=6)

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