explain.depesz.com

PostgreSQL's explain analyze made readable

Result: WVlb

Settings
# exclusive inclusive rows x rows loops node
1. 73.732 7,734.681 ↓ 50,000.0 100,000 1

Nested Loop (cost=13.00..29.50 rows=2 width=45) (actual time=5,845.690..7,734.681 rows=100,000 loops=1)

  • Buffers: shared hit=367941 read=133396
2. 22.381 5,860.949 ↓ 50,000.0 100,000 1

Unique (cost=12.56..12.57 rows=2 width=16) (actual time=5,817.058..5,860.949 rows=100,000 loops=1)

  • Buffers: shared hit=3 read=100940
3. 86.408 5,838.568 ↓ 50,000.0 100,000 1

Sort (cost=12.56..12.57 rows=2 width=16) (actual time=5,817.055..5,838.568 rows=100,000 loops=1)

  • Sort Key: ed.entity_id
  • Sort Method: quicksort Memory: 7760kB
  • Buffers: shared hit=3 read=100940
4. 5,752.160 5,752.160 ↓ 50,000.0 100,000 1

Index Scan using entity_detail_detail_type_name_value_idx on entity_detail ed (cost=0.70..12.55 rows=2 width=16) (actual time=44.802..5,752.160 rows=100,000 loops=1)

  • Index Cond: ((detail_type = 'Parameter'::text) AND (name = 'Device Parameter 1'::text) AND (value = 'Device Parameter 1 value'::text))
  • Buffers: shared read=100940
5. 1,800.000 1,800.000 ↑ 1.0 1 100,000

Index Scan using entity_pkey on entity e (cost=0.43..8.45 rows=1 width=45) (actual time=0.018..0.018 rows=1 loops=100,000)

  • Index Cond: (id = ed.entity_id)
  • Buffers: shared hit=367938 read=32456