explain.depesz.com

PostgreSQL's explain analyze made readable

Result: pnF6

Settings
# exclusive inclusive rows x rows loops node
1. 0.043 0.132 ↓ 10.0 10 1

Limit (cost=0.25..2.48 rows=1 width=208) (actual time=0.042..0.132 rows=10 loops=1)

  • Output: transaction_id, platform, user_id, (CASE WHEN (lock_ts >= '2019-05-13 18:13:43.303878'::timestamp without time zone) THEN 'locked'::text ELSE (status)::text END), item, quantity, pending_ts, NULL::timestamp without time zone, NULL::text, NULL::platform, NULL::timestamp without time zone, NULL::text, NULL::platform
  • Buffers: shared hit=10 dirtied=5
2. 0.089 0.089 ↓ 10.0 10 1

Index Scan using unfulfilled_transaction on public.transaction (cost=0.25..2.48 rows=1 width=208) (actual time=0.037..0.089 rows=10 loops=1)

  • Output: transaction_id, platform, user_id, CASE WHEN (lock_ts >= '2019-05-13 18:13:43.303878'::timestamp without time zone) THEN 'locked'::text ELSE (status)::text END, item, quantity, pending_ts, NULL::timestamp without time zone, NULL::text, NULL::platform, NULL::timestamp without time zone, NULL::text, NULL::platform
  • Index Cond: (transaction.pending_ts < 'infinity'::timestamp without time zone)
  • Filter: ((transaction.user_id = COALESCE(transaction.user_id)) AND (transaction.status = 'pending'::rv_status) AND (transaction.game = 'test'::text))
  • Buffers: shared hit=10 dirtied=5