explain.depesz.com

PostgreSQL's explain analyze made readable

Result: SHSw

Settings
# exclusive inclusive rows x rows loops node
1. 0.701 3.107 ↓ 2.3 1,768 1

HashAggregate (cost=73.22..80.77 rows=755 width=8) (actual time=2.842..3.107 rows=1,768 loops=1)

  • Group Key: table_0_2.c_documentid
2. 1.081 2.406 ↓ 2.3 1,768 1

Hash Left Join (cost=2.31..71.34 rows=755 width=8) (actual time=0.064..2.406 rows=1,768 loops=1)

  • Hash Cond: (table_0_2.c_datasetid = table_0_1.c_datasetsid)
  • Filter: ((lower((table_0_1.c_datasetname)::text) <> 'ds00001'::text) OR (table_0_1.c_datasetname IS NULL))
  • Rows Removed by Filter: 270
3. 0.214 1.303 ↓ 2.6 2,038 1

Nested Loop (cost=0.28..67.00 rows=772 width=16) (actual time=0.035..1.303 rows=2,038 loops=1)

4. 0.015 0.015 ↑ 1.0 1 1

Seq Scan on t_e20so1_custodian table_0 (cost=0.00..1.04 rows=1 width=8) (actual time=0.013..0.015 rows=1 loops=1)

  • Filter: (lower((c_custodianname)::text) = 'no custodian'::text)
  • Rows Removed by Filter: 2
5. 0.172 1.074 ↓ 2.6 2,038 1

Append (cost=0.28..58.24 rows=772 width=24) (actual time=0.020..1.074 rows=2,038 loops=1)

6. 0.902 0.902 ↓ 2.6 2,038 1

Index Scan using t_e20so1_document_datastore_11_c_custodianid_idx on t_e20so1_document_datastore_11 table_0_2 (cost=0.28..54.38 rows=772 width=24) (actual time=0.019..0.902 rows=2,038 loops=1)

  • Index Cond: (c_custodianid = table_0.c_custodianid)
  • Filter: ((c_docoriginalid IS NULL) AND (c_datastoresid = 11))
7. 0.010 0.022 ↓ 1.1 50 1

Hash (cost=1.46..1.46 rows=46 width=16) (actual time=0.021..0.022 rows=50 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
8. 0.012 0.012 ↓ 1.1 50 1

Seq Scan on t_e20so1_datasets table_0_1 (cost=0.00..1.46 rows=46 width=16) (actual time=0.005..0.012 rows=50 loops=1)