explain.depesz.com

PostgreSQL's explain analyze made readable

Result: g473

Settings
# exclusive inclusive rows x rows loops node
1. 0.056 60,248.661 ↓ 10.0 10 1

Nested Loop (cost=8.97..17.01 rows=1 width=45) (actual time=60,192.563..60,248.661 rows=10 loops=1)

  • Buffers: shared hit=30 read=1231269
2. 0.012 60,161.785 ↓ 10.0 10 1

Limit (cost=8.54..8.55 rows=1 width=16) (actual time=60,161.746..60,161.785 rows=10 loops=1)

  • Buffers: shared hit=3 read=1231256
3. 0.022 60,161.773 ↓ 10.0 10 1

Unique (cost=8.54..8.55 rows=1 width=16) (actual time=60,161.744..60,161.773 rows=10 loops=1)

  • Buffers: shared hit=3 read=1231256
4. 1,499.260 60,161.751 ↓ 10.0 10 1

Sort (cost=8.54..8.54 rows=1 width=16) (actual time=60,161.741..60,161.751 rows=10 loops=1)

  • Sort Key: ed.entity_id
  • Sort Method: quicksort Memory: 238930kB
  • Buffers: shared hit=3 read=1231256
5. 58,662.491 58,662.491 ↓ 3,000,000.0 3,000,000 1

Index Scan using entity_detail_detail_type_name_value_idx on entity_detail ed (cost=0.70..8.53 rows=1 width=16) (actual time=47.594..58,662.491 rows=3,000,000 loops=1)

  • Index Cond: ((detail_type = 'BacNetProperty'::text) AND (name = 'BACnet Property 1'::text) AND (value = 'BACnet Property 1 value'::text))
  • Buffers: shared read=1231256
6. 86.820 86.820 ↑ 1.0 1 10

Index Scan using entity_pkey on entity e (cost=0.43..8.45 rows=1 width=45) (actual time=8.682..8.682 rows=1 loops=10)

  • Index Cond: (id = ed.entity_id)
  • Buffers: shared hit=27 read=13