explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 116B

Settings
# exclusive inclusive rows x rows loops node
1. 6.661 10.509 ↓ 1.7 75 1

Gather (cost=1,045.79..14,921.91 rows=44 width=1,810) (actual time=7.850..10.509 rows=75 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
2. 0.060 3.773 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=45.79..13,557.92 rows=26 width=1,655) (actual time=2.598..3.773 rows=38 loops=2)

3. 0.059 3.713 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=45.65..13,553.01 rows=26 width=1,655) (actual time=2.592..3.713 rows=38 loops=2)

4. 0.060 3.654 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=45.52..13,549.03 rows=26 width=611) (actual time=2.587..3.654 rows=38 loops=2)

5. 0.046 3.594 ↓ 1.5 38 2 / 2

Hash Left Join (cost=45.24..13,540.44 rows=26 width=597) (actual time=2.581..3.594 rows=38 loops=2)

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

Nested Loop Left Join (cost=44.11..13,539.19 rows=26 width=601) (actual time=2.558..3.537 rows=38 loops=2)

7. 0.081 3.396 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=43.67..13,526.26 rows=26 width=601) (actual time=2.546..3.396 rows=38 loops=2)

8. 0.040 3.277 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=43.40..13,518.58 rows=26 width=591) (actual time=2.537..3.277 rows=38 loops=2)

9. 0.047 3.162 ↓ 1.5 38 2 / 2

Hash Left Join (cost=43.12..13,354.91 rows=26 width=581) (actual time=2.528..3.162 rows=38 loops=2)

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

Nested Loop Left Join (cost=41.80..13,353.50 rows=26 width=569) (actual time=2.496..3.094 rows=38 loops=2)

11. 0.063 2.952 ↓ 1.5 38 2 / 2

Nested Loop Left Join (cost=41.38..13,340.66 rows=26 width=453) (actual time=2.485..2.952 rows=38 loops=2)

12. 0.043 2.814 ↓ 1.5 38 2 / 2

Nested Loop (cost=40.96..13,328.32 rows=26 width=437) (actual time=2.474..2.814 rows=38 loops=2)

13. 0.213 2.659 ↓ 1.5 38 2 / 2

Hash Join (cost=40.53..13,113.55 rows=26 width=246) (actual time=2.460..2.659 rows=38 loops=2)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
14. 1.200 2.392 ↓ 4.4 568 2 / 2

Nested Loop (cost=38.13..13,110.41 rows=129 width=236) (actual time=0.160..2.392 rows=568 loops=2)

15. 0.282 0.399 ↑ 1.3 792 2 / 2

Parallel Bitmap Heap Scan on earlypaymentsettlement ps_eps (cost=37.70..6,355.37 rows=991 width=220) (actual time=0.139..0.399 rows=792 loops=2)

  • Recheck Cond: ((creationdate >= '2019-01-01'::date) AND (creationdate < '2019-01-02'::date))
  • Heap Blocks: exact=65
16. 0.117 0.117 ↑ 1.1 1,585 1 / 2

Bitmap Index Scan on earlypaymentsettlement_creationdate_idx (cost=0.00..37.28 rows=1,685 width=0) (actual time=0.234..0.234 rows=1,585 loops=1)

  • Index Cond: ((creationdate >= '2019-01-01'::date) AND (creationdate < '2019-01-02'::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.82 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.054 ↑ 1.0 4 2 / 2

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
19. 0.009 0.049 ↑ 1.0 4 2 / 2

Merge Right Join (cost=1.71..2.35 rows=4 width=26) (actual time=0.042..0.049 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.011..0.013 rows=6 loops=2)

21. 0.016 0.027 ↑ 1.0 4 2 / 2

Sort (cost=1.29..1.30 rows=4 width=16) (actual time=0.025..0.027 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.011 0.011 ↑ 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.010..0.011 rows=4 loops=2)

  • Filter: (buyer_id = 67002626)
  • 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: 1024 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.037 0.037 ↑ 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.001..0.001 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: 1024 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.005..0.007 rows=6 loops=2)

33. 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)
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.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 : 8.952 ms
Execution time : 10.798 ms