explain.depesz.com

PostgreSQL's explain analyze made readable

Result: gnqV

Settings
# exclusive inclusive rows x rows loops node
1. 0.389 21.386 ↓ 19.0 19 1

Unique (cost=46.71..46.79 rows=1 width=10,372) (actual time=20.834..21.386 rows=19 loops=1)

2. 0.421 20.997 ↓ 19.0 19 1

Sort (cost=46.71..46.72 rows=1 width=10,372) (actual time=20.815..20.997 rows=19 loops=1)

  • Sort Key: c1.name, c1.id, c1."primaryPhone", c1."alternativePhone", c1.email, c1.address1, c1.address2, c1.city, c1.state, c1."zipCode", c1.recruiter, c1.worklist, c1."hiddenFromWorklist", c1."applicationDate", c1."lastUpdatedDat
  • Sort Method: quicksort Memory: 30kB
3. 9.708 20.576 ↓ 19.0 19 1

Nested Loop Semi Join (cost=0.00..46.70 rows=1 width=10,372) (actual time=2.185..20.576 rows=19 loops=1)

  • Join Filter: ((c1.id <> c2.id) AND ((((c1."primaryPhone")::text <> ''::text) AND (((c1."primaryPhone")::text = (c2."primaryPhone")::text) OR ((c1."primaryPhone")::text = (c2."alternativePhone")::text))) OR (((c1."alternativ
  • Rows Removed by Join Filter: 859
4. 0.845 0.845 ↑ 1.0 39 1

Seq Scan on candidates c1 (cost=0.00..2.39 rows=39 width=10,368) (actual time=0.463..0.845 rows=39 loops=1)

5. 9.055 10.023 ↑ 1.7 23 39

Materialize (cost=0.00..2.58 rows=39 width=1,036) (actual time=0.024..0.257 rows=23 loops=39)

6. 0.968 0.968 ↑ 1.0 39 1

Seq Scan on candidates c2 (cost=0.00..2.39 rows=39 width=1,036) (actual time=0.572..0.968 rows=39 loops=1)

Planning time : 6.371 ms
Execution time : 21.745 ms