explain.depesz.com

PostgreSQL's explain analyze made readable

Result: yVCp

Settings
# exclusive inclusive rows x rows loops node
1. 9.633 447.867 ↑ 3.2 5,283 1

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

  • Workers Planned: 2
  • Workers Launched: 2
2. 1.733 432.951 ↑ 4.0 1,761 3 / 3

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

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

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

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

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

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

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

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

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

7. 1.721 418.788 ↑ 4.0 1,761 3 / 3

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

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

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

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

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

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

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

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

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

12. 2.484 402.170 ↑ 4.0 1,761 3 / 3

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

13. 2.546 396.164 ↑ 4.0 1,761 3 / 3

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

14. 64.660 388.284 ↑ 4.0 1,778 3 / 3

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

15. 110.041 185.003 ↑ 1.2 69,311 3 / 3

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

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
16. 74.941 74.941 ↑ 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.941 rows=277,103 loops=3)

17. 0.006 0.021 ↑ 1.0 5 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
18. 0.015 0.015 ↑ 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.011..0.015 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.026 ↑ 1.0 1 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
24. 0.023 0.023 ↑ 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.022..0.023 rows=1 loops=3)

  • Index Cond: (id = 3053)
25. 0.007 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.013 0.013 ↑ 1.0 14 3 / 3

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

27. 0.619 1.685 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
28. 1.066 1.066 ↑ 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.004..1.066 rows=1,650 loops=3)

29. 0.585 1.345 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
30. 0.760 0.760 ↑ 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.003..0.760 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.006 0.016 ↑ 1.0 6 3 / 3

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.015..0.016 rows=6 loops=3)

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

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

34. 0.326 0.629 ↑ 1.0 945 3 / 3

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

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

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

36. 0.001 0.005 ↓ 0.0 0 3 / 3

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

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

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

38. 0.001 0.004 ↓ 0.0 0 3 / 3

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.004..0.004 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.411 ms
Execution time : 449.521 ms