explain.depesz.com

PostgreSQL's explain analyze made readable

Result: DvQU

Settings
# exclusive inclusive rows x rows loops node
1. 0.004 5.349 ↑ 1.0 20 1

Limit (cost=5,318.33..5,318.38 rows=20 width=112) (actual time=5.343..5.349 rows=20 loops=1)

  • Buffers: shared hit=318
2.          

CTE x

3. 3.050 3.050 ↓ 1.0 3,322 1

Index Scan using transaction_site_id_references_user_offset_index on transactions t0 (cost=0.42..5,169.27 rows=3,198 width=147) (actual time=0.047..3.050 rows=3,322 loops=1)

  • Index Cond: ((site_id = ANY ('{1,2,3,4,5,6,7,8,9,10,12}'::integer[])) AND ("references"[2] = '(USER,53)'::transaction_reference))
  • Buffers: shared hit=318
4. 0.586 5.345 ↑ 159.9 20 1

Sort (cost=149.06..157.05 rows=3,198 width=112) (actual time=5.342..5.345 rows=20 loops=1)

  • Sort Key: x.id
  • Sort Method: top-N heapsort Memory: 34kB
  • Buffers: shared hit=318
5. 1.709 4.759 ↓ 1.0 3,322 1

CTE Scan on x (cost=0.00..63.96 rows=3,198 width=112) (actual time=0.050..4.759 rows=3,322 loops=1)

  • Buffers: shared hit=318
Planning time : 0.147 ms
Execution time : 5.494 ms