explain.depesz.com

PostgreSQL's explain analyze made readable

Result: N4wL

Settings
# exclusive inclusive rows x rows loops node
1. 0.390 21.451 ↓ 19.0 19 1

Unique (cost=50.52..50.59 rows=1 width=10,372) (actual time=20.899..21.451 rows=19 loops=1)

2. 0.444 21.061 ↓ 19.0 19 1

Sort (cost=50.52..50.52 rows=1 width=10,372) (actual time=20.879..21.061 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.780 20.617 ↓ 19.0 19 1

Nested Loop Semi Join (cost=0.00..50.51 rows=1 width=10,372) (actual time=2.127..20.617 rows=19 loops=1)

  • Join Filter: ((c1.id <> c2.id) AND (((c1."primaryPhone" IS NOT NULL) AND ((c1."primaryPhone")::text <> ''::text) AND (((c1."primaryPhone")::text = (c2."primaryPhone")::text) OR ((c1."primaryPhone")::text = (c2."alternativeP
  • Rows Removed by Join Filter: 859
4. 0.931 0.931 ↑ 1.0 39 1

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

5. 8.993 9.906 ↑ 1.7 23 39

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

6. 0.913 0.913 ↑ 1.0 39 1

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

Planning time : 5.097 ms
Execution time : 21.841 ms