explain.depesz.com

PostgreSQL's explain analyze made readable

Result: KDrl

Settings
# exclusive inclusive rows x rows loops node
1. 0.162 9.001 ↓ 1.7 75 1

Nested Loop Left Join (cost=14,287.83..14,655.50 rows=43 width=1,826) (actual time=8.541..9.001 rows=75 loops=1)

2. 0.099 8.764 ↓ 1.7 75 1

Nested Loop Left Join (cost=14,287.70..14,295.95 rows=43 width=1,639) (actual time=8.521..8.764 rows=75 loops=1)

3. 0.068 8.665 ↓ 1.7 75 1

Hash Left Join (cost=14,287.56..14,289.38 rows=43 width=595) (actual time=8.512..8.665 rows=75 loops=1)

  • Hash Cond: (si.originatordivision_id = od_db.id)
4. 0.091 8.506 ↓ 1.7 75 1

Merge Right Join (cost=14,198.11..14,199.33 rows=43 width=573) (actual time=8.409..8.506 rows=75 loops=1)

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
5. 0.019 0.019 ↑ 275.0 6 1

Index Scan using corporatebase_pkey on corporatebase ps_eps_t_bc_cb (cost=0.28..234.48 rows=1,650 width=26) (actual time=0.014..0.019 rows=6 loops=1)

6. 0.000 8.396 ↓ 1.7 75 1

Sort (cost=14,197.69..14,197.80 rows=43 width=563) (actual time=8.378..8.396 rows=75 loops=1)

  • Sort Key: ps_apfeps_t_apfda.bank_id
  • Sort Method: quicksort Memory: 63kB
7. 5.155 8.591 ↓ 1.7 75 1

Gather (cost=1,038.42..14,196.52 rows=43 width=563) (actual time=6.968..8.591 rows=75 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
8. 0.061 3.436 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=38.42..13,192.22 rows=25 width=563) (actual time=2.538..3.436 rows=38 loops=2)

9. 0.044 3.375 ↓ 1.5 38 2 / 2

Hash Left Join (cost=38.14..13,183.95 rows=25 width=549) (actual time=2.531..3.375 rows=38 loops=2)

  • Hash Cond: (si.currency_id = c.id)
10. 0.065 3.319 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=37.01..13,182.70 rows=25 width=553) (actual time=2.507..3.319 rows=38 loops=2)

11. 0.051 3.179 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=36.57..13,170.26 rows=25 width=553) (actual time=2.493..3.179 rows=38 loops=2)

12. 0.071 3.053 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=36.30..13,162.88 rows=25 width=543) (actual time=2.483..3.053 rows=38 loops=2)

13. 0.052 2.907 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=35.88..13,150.54 rows=25 width=427) (actual time=2.470..2.907 rows=38 loops=2)

14. 0.040 2.780 ↓ 1.5 38 2 / 2

Nested Loop (cost=35.45..13,139.41 rows=25 width=427) (actual time=2.454..2.780 rows=38 loops=2)

15. 0.221 2.628 ↓ 1.5 38 2 / 2

Hash Join (cost=35.02..12,932.86 rows=25 width=236) (actual time=2.440..2.628 rows=38 loops=2)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
16. 1.166 2.388 ↓ 4.5 568 2 / 2

Nested Loop (cost=33.72..12,931.16 rows=127 width=236) (actual time=0.189..2.388 rows=568 loops=2)

17. 0.306 0.429 ↑ 1.2 792 2 / 2

Parallel Bitmap Heap Scan on earlypaymentsettlement ps_eps (cost=33.30..6,257.58 rows=976 width=220) (actual time=0.145..0.429 rows=792 loops=2)

  • Recheck Cond: (creationdate = '2019-01-01'::date)
  • Heap Blocks: exact=64
18. 0.122 0.122 ↑ 1.0 1,585 1 / 2

Bitmap Index Scan on earlypaymentsettlement_creationdate_idx (cost=0.00..32.88 rows=1,660 width=0) (actual time=0.245..0.245 rows=1,585 loops=1)

  • Index Cond: (creationdate = '2019-01-01'::date)
19. 0.792 0.792 ↑ 1.0 1 1,585 / 2

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement ps_apfeps (cost=0.42..6.84 rows=1 width=24) (actual time=0.001..0.001 rows=1 loops=1,585)

  • Index Cond: (id = ps_eps.id)
20. 0.005 0.019 ↑ 1.0 4 2 / 2

Hash (cost=1.25..1.25 rows=4 width=16) (actual time=0.019..0.019 rows=4 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
21. 0.014 0.014 ↑ 1.0 4 2 / 2

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.25 rows=4 width=16) (actual time=0.012..0.014 rows=4 loops=2)

  • Filter: (buyer_id = 67002626)
  • Rows Removed by Filter: 16
22. 0.113 0.113 ↑ 1.0 1 75 / 2

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..8.26 rows=1 width=207) (actual time=0.003..0.003 rows=1 loops=75)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
23. 0.075 0.075 ↑ 1.0 1 75 / 2

Index Only Scan using financingcontextbase_pkey on financingcontextbase ps_apffc_fc_fcb (cost=0.42..0.45 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=75)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
  • Heap Fetches: 0
24. 0.075 0.075 ↑ 1.0 1 75 / 2

Index Scan using apffinancingcontext_pkey on apffinancingcontext ps_apffc_fc_afc (cost=0.42..0.49 rows=1 width=140) (actual time=0.002..0.002 rows=1 loops=75)

  • Index Cond: (ps_apffc_fc_fcb.id = id)
25. 0.075 0.075 ↑ 1.0 1 75 / 2

Index Scan using corporatebase_pkey on corporatebase s_cb (cost=0.28..0.30 rows=1 width=26) (actual time=0.002..0.002 rows=1 loops=75)

  • Index Cond: (id = si.supplier_id)
26. 0.075 0.075 ↑ 1.0 1 75 / 2

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..0.50 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=75)

  • Index Cond: (si.importbatch_id = id)
27. 0.005 0.012 ↑ 1.0 6 2 / 2

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.011..0.012 rows=6 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
28. 0.007 0.007 ↑ 1.0 6 2 / 2

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=12) (actual time=0.005..0.007 rows=6 loops=2)

29. 0.000 0.000 ↓ 0.0 0 75 / 2

Index Scan using earlypaymentadvice_pkey on earlypaymentadvice eps_epa (cost=0.28..0.33 rows=1 width=30) (actual time=0.000..0.000 rows=0 loops=75)

  • Index Cond: (id = ps_eps.earlypaymentadvice_id)
30. 0.010 0.091 ↑ 1.0 14 1

Hash (cost=89.28..89.28 rows=14 width=38) (actual time=0.091..0.091 rows=14 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
31. 0.028 0.081 ↑ 1.0 14 1

Nested Loop Left Join (cost=0.28..89.28 rows=14 width=38) (actual time=0.021..0.081 rows=14 loops=1)

32. 0.011 0.011 ↑ 1.0 14 1

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (actual time=0.008..0.011 rows=14 loops=1)

33. 0.042 0.042 ↑ 1.0 1 14

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..6.29 rows=1 width=26) (actual time=0.003..0.003 rows=1 loops=14)

  • Index Cond: (id = od_db.buyer_id)
34. 0.000 0.000 ↓ 0.0 0 75

Index Scan using invoicepaymentadvice_pkey on invoicepaymentadvice ipa (cost=0.14..0.15 rows=1 width=1,052) (actual time=0.000..0.000 rows=0 loops=75)

  • Index Cond: (si.paymentadvice_id = id)
35. 0.000 0.000 ↓ 0.0 0 75

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt (cost=0.14..0.18 rows=1 width=16) (actual time=0.000..0.000 rows=0 loops=75)

  • Index Cond: (mapping_id = ps_eps.earlypaymentmapping_id)
36.          

SubPlan (for Nested Loop Left Join)

37. 0.075 0.075 ↑ 1.0 1 75

Aggregate (cost=8.15..8.16 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=75)

38. 0.000 0.000 ↓ 0.0 0 75

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt_1 (cost=0.14..8.15 rows=1 width=8) (actual time=0.000..0.000 rows=0 loops=75)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 7.563 ms
Execution time : 9.672 ms