explain.depesz.com

PostgreSQL's explain analyze made readable

Result: SIHR

Settings

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.394 20.971 ↓ 19.0 19 1

Sort (cost=46.71..46.72 rows=1 width=1,552) (actual time=20.788..20.971 rows=19 loops=1)

  • Sort Key: c1.name
  • Sort Method: quicksort Memory: 26kB
2. 9.727 20.577 ↓ 19.0 19 1

Nested Loop Semi Join (cost=0.00..46.70 rows=1 width=1,552) (actual time=2.062..20.577 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."alternativePhone
  • Rows Removed by Join Filter: 859
3. 0.905 0.905 ↑ 1.0 39 1

Seq Scan on candidates c1 (cost=0.00..2.39 rows=39 width=1,552) (actual time=0.519..0.905 rows=39 loops=1)

4. 9.034 9.945 ↑ 1.7 23 39

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

5. 0.911 0.911 ↑ 1.0 39 1

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

Planning time : 7.941 ms
Execution time : 21.302 ms