explain.depesz.com

PostgreSQL's explain analyze made readable

Result: aGwQ

Settings
# exclusive inclusive rows x rows loops node
1. 0.008 192.618 ↓ 6.0 6 1

Group (cost=1.01..130,386.57 rows=1 width=643) (actual time=0.701..192.618 rows=6 loops=1)

  • Group Key: dl.name, dlitem.id
2. 0.021 192.610 ↓ 6.0 6 1

Nested Loop (cost=1.01..130,386.56 rows=1 width=643) (actual time=0.698..192.610 rows=6 loops=1)

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

Nested Loop Semi Join (cost=1.01..130,356.64 rows=1 width=651) (actual time=0.691..191.659 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.005 12.819 ↓ 7.0 7 1

Nested Loop (cost=0.57..1,934.97 rows=1 width=651) (actual time=0.420..12.819 rows=7 loops=1)

5. 7.783 12.703 ↑ 1.4 37 1

Nested Loop (cost=0.29..1,914.60 rows=51 width=651) (actual time=0.384..12.703 rows=37 loops=1)

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

Index Scan using "data_list_itemPK" on data_list_item dlitem (cost=0.29..966.43 rows=20,557 width=631) (actual time=0.006..4.920 rows=20,511 loops=1)

7. 0.000 0.000 ↑ 3.0 1 20,511

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

8. 0.184 0.184 ↑ 3.0 1 1

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

  • Filter: ((name)::text = 'trecho'::text)
  • Rows Removed by Filter: 1,243
9. 0.111 0.111 ↓ 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.003..0.003 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. 18.150 166.551 ↑ 3.0 2,944 7

Materialize (cost=0.43..127,446.24 rows=8,743 width=658) (actual time=0.004..23.793 rows=2,944 loops=7)

11. 13.370 148.401 ↓ 2.3 20,074 1

Nested Loop Semi Join (cost=0.43..126,667.52 rows=8,743 width=658) (actual time=0.023..148.401 rows=20,074 loops=1)

12. 34.661 34.661 ↓ 1.0 20,074 1

Seq Scan on document doc (cost=0.00..14,647.69 rows=20,012 width=666) (actual time=0.007..34.661 rows=20,074 loops=1)

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

Index Scan using vcl_document_id_idx on vcl (cost=0.43..24.56 rows=6 width=8) (actual time=0.005..0.005 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.930 0.930 ↑ 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.004..0.155 rows=31 loops=6)

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