explain.depesz.com

PostgreSQL's explain analyze made readable

Result: UdgN

Settings
# exclusive inclusive rows x rows loops node
1. 9.314 444.095 ↑ 3.2 5,283 1

Gather (cost=1,489.17..327,047.41 rows=16,863 width=1,826) (actual time=6.312..444.095 rows=5,283 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 1.697 429.498 ↑ 4.0 1,761 3 / 3

Hash Left Join (cost=489.17..186,548.24 rows=7,026 width=1,639) (actual time=4.097..429.498 rows=1,761 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 1.871 427.798 ↑ 4.0 1,761 3 / 3

Hash Left Join (cost=478.95..186,511.66 rows=7,026 width=1,639) (actual time=4.080..427.798 rows=1,761 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 1.691 425.923 ↑ 4.0 1,761 3 / 3

Hash Left Join (cost=468.72..186,482.99 rows=7,026 width=595) (actual time=4.064..425.923 rows=1,761 loops=3)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 1.674 423.539 ↑ 4.0 1,761 3 / 3

Hash Left Join (cost=436.46..186,432.28 rows=7,026 width=581) (actual time=3.360..423.539 rows=1,761 loops=3)

  • Hash Cond: (si.currency_id = c.id)
6. 3.092 421.852 ↑ 4.0 1,761 3 / 3

Nested Loop Left Join (cost=435.33..186,399.68 rows=7,026 width=585) (actual time=3.336..421.852 rows=1,761 loops=3)

7. 1.693 415.238 ↑ 4.0 1,761 3 / 3

Hash Left Join (cost=434.89..182,904.08 rows=7,026 width=585) (actual time=3.321..415.238 rows=1,761 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 1.685 412.101 ↑ 4.0 1,761 3 / 3

Hash Left Join (cost=223.77..182,674.47 rows=7,026 width=575) (actual time=1.864..412.101 rows=1,761 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 1.750 408.781 ↑ 4.0 1,761 3 / 3

Hash Left Join (cost=12.64..182,444.86 rows=7,026 width=565) (actual time=0.217..408.781 rows=1,761 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 1.719 407.011 ↑ 4.0 1,761 3 / 3

Hash Left Join (cost=11.33..182,419.51 rows=7,026 width=553) (actual time=0.184..407.011 rows=1,761 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 3.098 405.270 ↑ 4.0 1,761 3 / 3

Nested Loop Left Join (cost=3.02..182,314.60 rows=7,026 width=543) (actual time=0.149..405.270 rows=1,761 loops=3)

12. 2.341 398.650 ↑ 4.0 1,761 3 / 3

Nested Loop Left Join (cost=2.60..178,844.77 rows=7,026 width=427) (actual time=0.137..398.650 rows=1,761 loops=3)

13. 2.379 392.787 ↑ 4.0 1,761 3 / 3

Nested Loop (cost=2.18..175,716.69 rows=7,026 width=427) (actual time=0.121..392.787 rows=1,761 loops=3)

14. 61.378 385.074 ↑ 4.0 1,778 3 / 3

Nested Loop (cost=1.75..158,486.94 rows=7,029 width=236) (actual time=0.108..385.074 rows=1,778 loops=3)

15. 110.254 185.075 ↑ 1.2 69,311 3 / 3

Hash Join (cost=1.31..9,862.02 rows=86,595 width=24) (actual time=0.092..185.075 rows=69,311 loops=3)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
16. 74.801 74.801 ↑ 1.3 277,103 3 / 3

Parallel Seq Scan on apfearlypaymentsettlement ps_apfeps (cost=0.00..8,758.79 rows=346,379 width=24) (actual time=0.004..74.801 rows=277,103 loops=3)

17. 0.006 0.020 ↑ 1.0 5 3 / 3

Hash (cost=1.25..1.25 rows=5 width=16) (actual time=0.020..0.020 rows=5 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
18. 0.014 0.014 ↑ 1.0 5 3 / 3

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.25 rows=5 width=16) (actual time=0.010..0.014 rows=5 loops=3)

  • Filter: (bank_id = 3053)
  • Rows Removed by Filter: 15
19. 138.621 138.621 ↓ 0.0 0 207,932 / 3

Index Scan using earlypaymentsettlement_pkey on earlypaymentsettlement ps_eps (cost=0.43..1.72 rows=1 width=220) (actual time=0.002..0.002 rows=0 loops=207,932)

  • Index Cond: (id = ps_apfeps.id)
  • Filter: (creationdate >= '2019-02-01'::date)
  • Rows Removed by Filter: 1
20. 5.334 5.334 ↑ 1.0 1 5,334 / 3

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..2.45 rows=1 width=207) (actual time=0.003..0.003 rows=1 loops=5,334)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
21. 3.522 3.522 ↑ 1.0 1 5,283 / 3

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=5,283)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
  • Heap Fetches: 0
22. 3.522 3.522 ↑ 1.0 1 5,283 / 3

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=5,283)

  • Index Cond: (ps_apffc_fc_fcb.id = id)
23. 0.003 0.022 ↑ 1.0 1 3 / 3

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.022..0.022 rows=1 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
24. 0.019 0.019 ↑ 1.0 1 3 / 3

Index Scan using corporatebase_pkey on corporatebase ps_eps_t_bc_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.018..0.019 rows=1 loops=3)

  • Index Cond: (id = 3053)
25. 0.008 0.020 ↑ 1.0 14 3 / 3

Hash (cost=1.14..1.14 rows=14 width=28) (actual time=0.020..0.020 rows=14 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
26. 0.012 0.012 ↑ 1.0 14 3 / 3

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

27. 0.666 1.635 ↑ 1.0 1,650 3 / 3

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.634..1.635 rows=1,650 loops=3)

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
28. 0.969 0.969 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase od_c_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.003..0.969 rows=1,650 loops=3)

29. 0.638 1.444 ↑ 1.0 1,650 3 / 3

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.444..1.444 rows=1,650 loops=3)

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
30. 0.806 0.806 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase s_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.002..0.806 rows=1,650 loops=3)

31. 3.522 3.522 ↑ 1.0 1 5,283 / 3

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=5,283)

  • Index Cond: (si.importbatch_id = id)
32. 0.005 0.013 ↑ 1.0 6 3 / 3

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.012..0.013 rows=6 loops=3)

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

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

34. 0.358 0.693 ↑ 1.0 945 3 / 3

Hash (cost=20.45..20.45 rows=945 width=30) (actual time=0.693..0.693 rows=945 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
35. 0.335 0.335 ↑ 1.0 945 3 / 3

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..20.45 rows=945 width=30) (actual time=0.004..0.335 rows=945 loops=3)

36. 0.001 0.004 ↓ 0.0 0 3 / 3

Hash (cost=10.10..10.10 rows=10 width=1,052) (actual time=0.004..0.004 rows=0 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
37. 0.003 0.003 ↓ 0.0 0 3 / 3

Seq Scan on invoicepaymentadvice ipa (cost=0.00..10.10 rows=10 width=1,052) (actual time=0.003..0.003 rows=0 loops=3)

38. 0.000 0.003 ↓ 0.0 0 3 / 3

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.003..0.003 rows=0 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
39. 0.003 0.003 ↓ 0.0 0 3 / 3

Seq Scan on bankpaymenttransaction bpt (cost=0.00..10.10 rows=10 width=16) (actual time=0.003..0.003 rows=0 loops=3)

40.          

SubPlan (for Gather)

41. 5.283 5.283 ↑ 1.0 1 5,283

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

42. 0.000 0.000 ↓ 0.0 0 5,283

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=5,283)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.273 ms
Execution time : 445.761 ms