explain.depesz.com

PostgreSQL's explain analyze made readable

Result: tZ6U

Settings
# exclusive inclusive rows x rows loops node
1. 5.894 9.763 ↓ 1.7 75 1

Gather (cost=1,041.38..14,717.45 rows=43 width=1,810) (actual time=7.747..9.763 rows=75 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
2. 0.063 3.719 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=41.38..13,361.73 rows=25 width=1,655) (actual time=2.541..3.719 rows=38 loops=2)

3. 0.059 3.656 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=41.24..13,357.00 rows=25 width=1,655) (actual time=2.535..3.656 rows=38 loops=2)

4. 0.028 3.597 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=41.11..13,353.17 rows=25 width=611) (actual time=2.530..3.597 rows=38 loops=2)

5. 0.047 3.531 ↓ 1.5 38 2 / 2

Hash Left Join (cost=40.83..13,344.90 rows=25 width=597) (actual time=2.524..3.531 rows=38 loops=2)

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

Nested Loop Left Join (cost=39.70..13,343.65 rows=25 width=601) (actual time=2.503..3.473 rows=38 loops=2)

7. 0.047 3.333 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=39.27..13,331.21 rows=25 width=601) (actual time=2.492..3.333 rows=38 loops=2)

8. 0.040 3.211 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=38.99..13,323.83 rows=25 width=591) (actual time=2.483..3.211 rows=38 loops=2)

9. 0.046 3.096 ↓ 1.5 38 2 / 2

Hash Left Join (cost=38.71..13,166.45 rows=25 width=581) (actual time=2.475..3.096 rows=38 loops=2)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 0.066 3.029 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=37.40..13,165.05 rows=25 width=569) (actual time=2.443..3.029 rows=38 loops=2)

11. 0.060 2.888 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=36.98..13,152.70 rows=25 width=453) (actual time=2.432..2.888 rows=38 loops=2)

12. 0.039 2.753 ↓ 1.5 38 2 / 2

Nested Loop (cost=36.55..13,140.83 rows=25 width=437) (actual time=2.423..2.753 rows=38 loops=2)

13. 0.208 2.602 ↓ 1.5 38 2 / 2

Hash Join (cost=36.12..12,934.28 rows=25 width=246) (actual time=2.409..2.602 rows=38 loops=2)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
14. 1.170 2.342 ↓ 4.5 568 2 / 2

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

15. 0.274 0.380 ↑ 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.126..0.380 rows=792 loops=2)

  • Recheck Cond: (creationdate = '2019-01-01'::date)
  • Heap Blocks: exact=65
16. 0.106 0.106 ↑ 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.213..0.213 rows=1,585 loops=1)

  • Index Cond: (creationdate = '2019-01-01'::date)
17. 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)
18. 0.005 0.052 ↑ 1.0 4 2 / 2

Hash (cost=2.35..2.35 rows=4 width=26) (actual time=0.052..0.052 rows=4 loops=2)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
19. 0.009 0.047 ↑ 1.0 4 2 / 2

Merge Right Join (cost=1.71..2.35 rows=4 width=26) (actual time=0.040..0.047 rows=4 loops=2)

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
20. 0.013 0.013 ↑ 275.0 6 2 / 2

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.010..0.013 rows=6 loops=2)

21. 0.015 0.025 ↑ 1.0 4 2 / 2

Sort (cost=1.29..1.30 rows=4 width=16) (actual time=0.024..0.025 rows=4 loops=2)

  • Sort Key: ps_apfeps_t_apfda.bank_id
  • Sort Method: quicksort Memory: 25kB
  • Worker 0: Sort Method: quicksort Memory: 25kB
22. 0.010 0.010 ↑ 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.008..0.010 rows=4 loops=2)

  • Filter: (buyer_id = 67,002,626)
  • Rows Removed by Filter: 16
23. 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)
24. 0.075 0.075 ↑ 1.0 1 75 / 2

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

  • Index Cond: (id = ps_apfeps.financingcontext_id)
25. 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=132) (actual time=0.002..0.002 rows=1 loops=75)

  • Index Cond: (ps_apffc_fc_fcb.id = id)
26. 0.009 0.021 ↑ 1.0 14 2 / 2

Hash (cost=1.14..1.14 rows=14 width=28) (actual time=0.021..0.021 rows=14 loops=2)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
27. 0.012 0.012 ↑ 1.0 14 2 / 2

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (actual time=0.005..0.012 rows=14 loops=2)

28. 0.075 0.075 ↑ 1.0 1 75 / 2

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

  • Index Cond: (id = od_db.buyer_id)
29. 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)
30. 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)
31. 0.004 0.011 ↑ 1.0 6 2 / 2

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
32. 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.004..0.007 rows=6 loops=2)

33. 0.037 0.037 ↓ 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.001..0.001 rows=0 loops=75)

  • Index Cond: (id = ps_eps.earlypaymentadvice_id)
34. 0.000 0.000 ↓ 0.0 0 75 / 2

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 / 2

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 Gather)

37. 0.075 0.150 ↑ 1.0 1 75

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

38. 0.075 0.075 ↓ 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.001..0.001 rows=0 loops=75)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.991 ms
Execution time : 10.052 ms