explain.depesz.com

PostgreSQL's explain analyze made readable

Result: hSrb

Settings
# exclusive inclusive rows x rows loops node
1. 6.756 12.401 ↓ 4.7 75 1

Gather (cost=1,054.47..15,344.78 rows=16 width=1,810) (actual time=9.832..12.401 rows=75 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
2. 0.065 5.570 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=54.47..14,212.42 rows=9 width=1,655) (actual time=4.436..5.570 rows=38 loops=2)

3. 0.062 5.505 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=54.34..14,210.72 rows=9 width=1,655) (actual time=4.429..5.505 rows=38 loops=2)

4. 0.062 5.443 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=54.20..14,209.33 rows=9 width=611) (actual time=4.424..5.443 rows=38 loops=2)

5. 0.046 5.381 ↓ 4.2 38 2 / 2

Hash Left Join (cost=53.93..14,206.36 rows=9 width=597) (actual time=4.418..5.381 rows=38 loops=2)

  • Hash Cond: (si.currency_id = c.id)
6. 0.064 5.321 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=52.79..14,205.18 rows=9 width=601) (actual time=4.393..5.321 rows=38 loops=2)

7. 0.054 5.182 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=52.36..14,200.70 rows=9 width=601) (actual time=4.383..5.182 rows=38 loops=2)

8. 0.048 5.053 ↓ 4.2 38 2 / 2

Hash Left Join (cost=52.08..14,198.04 rows=9 width=591) (actual time=4.375..5.053 rows=38 loops=2)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.068 4.987 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=43.77..14,189.61 rows=9 width=581) (actual time=4.345..4.987 rows=38 loops=2)

10. 0.068 4.844 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=43.35..14,185.17 rows=9 width=465) (actual time=4.335..4.844 rows=38 loops=2)

11. 0.071 4.701 ↓ 4.2 38 2 / 2

Hash Join (cost=42.93..14,180.89 rows=9 width=449) (actual time=4.324..4.701 rows=38 loops=2)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
12. 0.195 4.552 ↓ 4.2 38 2 / 2

Hash Join (cost=39.75..14,177.59 rows=9 width=439) (actual time=4.211..4.552 rows=38 loops=2)

  • Hash Cond: (si.originatordivision_id = od_db.id)
13. 0.595 4.346 ↓ 4.4 568 2 / 2

Nested Loop (cost=38.56..14,175.96 rows=129 width=427) (actual time=0.174..4.346 rows=568 loops=2)

14. 0.610 2.616 ↓ 4.4 568 2 / 2

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

15. 0.296 0.421 ↑ 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.144..0.421 rows=792 loops=2)

  • Recheck Cond: ((creationdate >= '2019-01-01'::date) AND (creationdate < '2019-01-02'::date))
  • Heap Blocks: exact=49
16. 0.124 0.124 ↑ 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.249..0.249 rows=1,585 loops=1)

  • Index Cond: ((creationdate >= '2019-01-01'::date) AND (creationdate < '2019-01-02'::date))
17. 1.585 1.585 ↑ 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.002..0.002 rows=1 loops=1,585)

  • Index Cond: (id = ps_eps.id)
18. 1.135 1.135 ↑ 1.0 1 1,135 / 2

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

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
19. 0.002 0.011 ↑ 1.0 1 2 / 2

Hash (cost=1.18..1.18 rows=1 width=28) (actual time=0.011..0.011 rows=1 loops=2)

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

Seq Scan on divisionbase od_db (cost=0.00..1.18 rows=1 width=28) (actual time=0.008..0.009 rows=1 loops=2)

  • Filter: (buyer_id = 67002626)
  • Rows Removed by Filter: 13
21. 0.010 0.078 ↑ 1.0 20 2 / 2

Hash (cost=2.93..2.93 rows=20 width=26) (actual time=0.078..0.078 rows=20 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
22. 0.018 0.068 ↑ 1.0 20 2 / 2

Merge Right Join (cost=2.05..2.93 rows=20 width=26) (actual time=0.048..0.068 rows=20 loops=2)

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
23. 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)

24. 0.023 0.037 ↑ 1.0 20 2 / 2

Sort (cost=1.63..1.68 rows=20 width=16) (actual time=0.032..0.037 rows=20 loops=2)

  • Sort Key: ps_apfeps_t_apfda.bank_id
  • Sort Method: quicksort Memory: 25kB
  • Worker 0: Sort Method: quicksort Memory: 25kB
25. 0.014 0.014 ↑ 1.0 20 2 / 2

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.20 rows=20 width=16) (actual time=0.007..0.014 rows=20 loops=2)

26. 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)
27. 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)
28. 0.003 0.018 ↑ 1.0 1 2 / 2

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.017..0.018 rows=1 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
29. 0.015 0.015 ↑ 1.0 1 2 / 2

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.014..0.015 rows=1 loops=2)

  • Index Cond: (id = 67002626)
30. 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)
31. 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)
32. 0.005 0.014 ↑ 1.0 6 2 / 2

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

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

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

34. 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)
35. 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)
36. 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)
37.          

SubPlan (for Gather)

38. 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)

39. 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.688 ms
Execution time : 12.690 ms