explain.depesz.com

PostgreSQL's explain analyze made readable

Result: DTLq : 1

Settings

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.000 0.000 ↓ 0.0

Nested Loop (cost=16.13..34,540,536.43 rows=1,419,021 width=158) (actual rows= loops=)

2. 0.000 0.000 ↓ 0.0

Nested Loop (cost=16.00..34,272,684.21 rows=1,419,021 width=154) (actual rows= loops=)

3. 0.000 0.000 ↓ 0.0

Nested Loop (cost=16.00..32,676,285.59 rows=1,419,021 width=126) (actual rows= loops=)

4. 0.000 0.000 ↓ 0.0

Nested Loop (cost=16.00..29,047,139.38 rows=1,419,021 width=128) (actual rows= loops=)

5. 0.000 0.000 ↓ 0.0

Seq Scan on fin_bill_generate g (cost=0.00..623,439.24 rows=1,419,021 width=116) (actual rows= loops=)

  • Filter: ((NOT is_sifted) AND ((region_data ->> 'is_tariff_service'::text))::boolean)
6. 0.000 0.000 ↓ 0.0

Limit (cost=16.00..20.01 rows=1 width=12) (actual rows= loops=)

7. 0.000 0.000 ↓ 0.0

Bitmap Heap Scan on pim_org_code (cost=16.00..20.01 rows=1 width=12) (actual rows= loops=)

  • Recheck Cond: ((org_id = g.org_id) AND (type_id = 7))
8. 0.000 0.000 ↓ 0.0

BitmapAnd (cost=16.00..16.00 rows=1 width=0) (actual rows= loops=)

9. 0.000 0.000 ↓ 0.0

Bitmap Index Scan on fk_pim_org_code_to_org (cost=0.00..4.46 rows=6 width=0) (actual rows= loops=)

  • Index Cond: (org_id = g.org_id)
10. 0.000 0.000 ↓ 0.0

Bitmap Index Scan on fkc6856cb3ec5d17fa (cost=0.00..11.28 rows=382 width=0) (actual rows= loops=)

  • Index Cond: (type_id = 7)
11. 0.000 0.000 ↓ 0.0

Limit (cost=0.00..2.54 rows=1 width=2) (actual rows= loops=)

12. 0.000 0.000 ↓ 0.0

Seq Scan on mc_payment_method (cost=0.00..2.54 rows=1 width=2) (actual rows= loops=)

  • Filter: (id = g.payment_method_id)
13. 0.000 0.000 ↓ 0.0

Limit (cost=0.00..1.10 rows=1 width=4) (actual rows= loops=)

14. 0.000 0.000 ↓ 0.0

Seq Scan on mc_care_regimen (cost=0.00..1.10 rows=1 width=4) (actual rows= loops=)

  • Filter: (id = g.care_regimen_id)
15. 0.000 0.000 ↓ 0.0

Index Scan using mc_case_init_goal_pk on mc_case_init_goal i (cost=0.14..0.16 rows=1 width=8) (actual rows= loops=)

  • Index Cond: (id = g.init_goal_id)