explain.depesz.com

PostgreSQL's explain analyze made readable

Result: pvU5

Settings
# exclusive inclusive rows x rows loops node
1. 9.100 441.199 ↑ 3.2 5,283 1

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

  • Workers Planned: 2
  • Workers Launched: 2
2. 1.726 426.816 ↑ 4.0 1,761 3 / 3

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

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

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

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

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

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

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

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

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

7. 1.687 412.833 ↑ 4.0 1,761 3 / 3

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

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

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

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

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

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

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

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

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

12. 2.451 396.285 ↑ 4.0 1,761 3 / 3

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

13. 2.382 390.312 ↑ 4.0 1,761 3 / 3

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

14. 62.981 382.596 ↑ 4.0 1,778 3 / 3

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

15. 107.953 180.994 ↑ 1.2 69,311 3 / 3

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

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
16. 73.020 73.020 ↑ 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..73.020 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.023 ↑ 1.0 1 3 / 3

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

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

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
26. 0.014 0.014 ↑ 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.014 rows=14 loops=3)

27. 0.641 1.750 ↑ 1.0 1,650 3 / 3

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

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

29. 0.609 1.419 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
30. 0.810 0.810 ↑ 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.810 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.015 ↑ 1.0 6 3 / 3

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.015..0.015 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.007..0.010 rows=6 loops=3)

34. 0.333 0.646 ↑ 1.0 945 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
35. 0.313 0.313 ↑ 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.313 rows=945 loops=3)

36. 0.000 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.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.003..0.004 rows=0 loops=3)

38. 0.000 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.004 0.004 ↓ 0.0 0 3 / 3

Seq Scan on bankpaymenttransaction bpt (cost=0.00..10.10 rows=10 width=16) (actual time=0.003..0.004 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.318 ms
Execution time : 442.778 ms