explain.depesz.com

PostgreSQL's explain analyze made readable

Result: PLDi

Settings
# exclusive inclusive rows x rows loops node
1. 0.010 0.218 ↓ 2.0 2 1

Unique (cost=67.04..67.09 rows=1 width=184) (actual time=0.209..0.218 rows=2 loops=1)

2. 0.051 0.208 ↓ 8.0 8 1

Sort (cost=67.04..67.05 rows=1 width=184) (actual time=0.207..0.208 rows=8 loops=1)

  • Sort Key: policyloss0_.id, policyloss0_.id_roszczenia, policyloss0_.sygnatura_roszczenia, policyloss0_.status_roszczenia_nazwa, policyloss0_.data_powstania, policyloss0_.id_oszacowania, policyloss0_.kod_ubezp, policyloss0_.kod_ryzyka, policyloss0_.data_zgloszenia, policyloss0_.wyplaty, policyloss0_.nr_polisy2, policyloss0_.rezerwa_rbnp, policyloss0_.sygnatura_szkody, policyloss0_.status_obslugi, policyloss0_.taryfa_szablon
  • Sort Method: quicksort Memory: 27kB
3. 0.006 0.157 ↓ 8.0 8 1

Nested Loop (cost=2.43..67.03 rows=1 width=184) (actual time=0.070..0.157 rows=8 loops=1)

  • Join Filter: (productgro4_1_.id = productgro4_.id)
4. 0.000 0.135 ↓ 8.0 8 1

Nested Loop (cost=2.15..66.72 rows=1 width=200) (actual time=0.061..0.135 rows=8 loops=1)

5. 0.004 0.122 ↓ 8.0 8 1

Nested Loop (cost=2.00..66.55 rows=1 width=208) (actual time=0.056..0.122 rows=8 loops=1)

6. 0.002 0.090 ↓ 4.0 4 1

Nested Loop (cost=1.58..66.06 rows=1 width=32) (actual time=0.045..0.090 rows=4 loops=1)

7. 0.006 0.068 ↓ 4.0 4 1

Nested Loop (cost=1.15..65.54 rows=1 width=24) (actual time=0.039..0.068 rows=4 loops=1)

8. 0.005 0.038 ↓ 2.0 12 1

Nested Loop (cost=0.86..63.60 rows=6 width=16) (actual time=0.024..0.038 rows=12 loops=1)

9. 0.016 0.016 ↑ 1.0 1 1

Index Scan using idx_person_pesel on prs_person personenti5_ (cost=0.43..8.45 rows=1 width=8) (actual time=0.015..0.016 rows=1 loops=1)

  • Index Cond: ((pesel)::text = '59080308623'::text)
10. 0.017 0.017 ↑ 1.2 12 1

Index Scan using idx_person_id on pcy_person_value personvalu2_ (cost=0.43..55.01 rows=14 width=24) (actual time=0.006..0.017 rows=12 loops=1)

  • Index Cond: (person_id = personenti5_.id)
11. 0.024 0.024 ↓ 0.0 0 12

Index Scan using pk_prd_item on prd_item productgro4_1_ (cost=0.29..0.31 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=12)

  • Index Cond: (id = personvalu2_.group_id)
  • Filter: ((alias)::text = 'UBEZPIECZONY'::text)
  • Rows Removed by Filter: 1
12. 0.020 0.020 ↑ 1.0 1 4

Index Scan using pk_pcy_policy on pcy_policy policyenti1_ (cost=0.43..0.51 rows=1 width=24) (actual time=0.004..0.005 rows=1 loops=4)

  • Index Cond: (id = personvalu2_.policy_id)
13. 0.028 0.028 ↑ 1.0 2 4

Index Scan using idx_pcy_loss_ratio_nr_polisy2 on pcy_loss_ratio policyloss0_ (cost=0.42..0.46 rows=2 width=184) (actual time=0.005..0.007 rows=2 loops=4)

  • Index Cond: ((nr_polisy2)::text = (policyenti1_.policy_number)::text)
14. 0.016 0.016 ↑ 1.0 1 8

Index Scan using pk_prd_product on prd_product productent3_ (cost=0.14..0.17 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=8)

  • Index Cond: (id = policyenti1_.product_id)
  • Filter: ((code)::text = ANY ('{A15,Zodiak}'::text[]))
15. 0.016 0.016 ↑ 1.0 1 8

Index Only Scan using pk_prd_group on prd_group productgro4_ (cost=0.28..0.30 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=8)

  • Index Cond: (id = personvalu2_.group_id)
  • Heap Fetches: 8