explain.depesz.com

PostgreSQL's explain analyze made readable

Result: KyjL

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 1.092 ↓ 0.0 0 1

Limit (cost=27,731.44..27,731.44 rows=1 width=8) (actual time=1.091..1.092 rows=0 loops=1)

  • Buffers: shared read=8
2. 0.006 1.091 ↓ 0.0 0 1

Sort (cost=27,731.44..27,748.93 rows=6,997 width=8) (actual time=1.091..1.091 rows=0 loops=1)

  • Sort Key: trade_started_at
  • Sort Method: quicksort Memory: 25kB
  • Buffers: shared read=8
3. 0.002 1.085 ↓ 0.0 0 1

Bitmap Heap Scan on crypto_trades_completed (cost=141.11..27,696.45 rows=6,997 width=8) (actual time=1.085..1.085 rows=0 loops=1)

  • Recheck Cond: ((offer_owner_id = 123) OR (offer_responder_id = 456))
  • Buffers: shared read=8
4. 0.001 1.083 ↓ 0.0 0 1

BitmapOr (cost=141.11..141.11 rows=6,997 width=0) (actual time=1.083..1.083 rows=0 loops=1)

  • Buffers: shared read=8
5. 0.666 0.666 ↓ 0.0 0 1

Bitmap Index Scan on crypto_trades_completed_offer_owner_id_index (cost=0.00..119.28 rows=6,228 width=0) (actual time=0.665..0.666 rows=0 loops=1)

  • Index Cond: (offer_owner_id = 123)
  • Buffers: shared read=4
6. 0.416 0.416 ↓ 0.0 0 1

Bitmap Index Scan on crypto_trades_completed_offer_responder_id_index (cost=0.00..18.33 rows=769 width=0) (actual time=0.416..0.416 rows=0 loops=1)

  • Index Cond: (offer_responder_id = 456)
  • Buffers: shared read=4
Planning time : 0.175 ms
Execution time : 1.120 ms