explain.depesz.com

PostgreSQL's explain analyze made readable

Result: sQ6e

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 1.986 ↑ 1.0 1 1

Limit (cost=723.36..723.36 rows=1 width=32) (actual time=1.985..1.986 rows=1 loops=1)

2. 0.033 1.985 ↑ 128.0 1 1

Sort (cost=723.36..723.68 rows=128 width=32) (actual time=1.984..1.985 rows=1 loops=1)

  • Sort Key: ((SubPlan 1))
  • Sort Method: top-N heapsort Memory: 25kB
3. 0.160 1.952 ↑ 1.0 128 1

Seq Scan on attachments_a a (cost=0.00..722.72 rows=128 width=32) (actual time=0.040..1.952 rows=128 loops=1)

4.          

SubPlan (for Seq Scan)

5. 1.792 1.792 ↑ 1.0 1 128

Seq Scan on attachments_a b (cost=0.00..5.60 rows=1 width=8) (actual time=0.007..0.014 rows=1 loops=128)

  • Filter: (a.id = id)
  • Rows Removed by Filter: 127
Planning time : 0.113 ms
Execution time : 2.010 ms