explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 7HRe

Settings
# exclusive inclusive rows x rows loops node
1. 13.087 291.067 ↑ 11.4 1,181 1

Gather (cost=1,691.98..264,218.75 rows=13,491 width=1,810) (actual time=175.853..291.067 rows=1,181 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 0.376 276.799 ↑ 14.3 394 3 / 3

Hash Left Join (cost=691.98..151,614.45 rows=5,621 width=1,655) (actual time=165.079..276.799 rows=394 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 0.376 276.419 ↑ 14.3 394 3 / 3

Hash Left Join (cost=681.75..151,583.14 rows=5,621 width=1,655) (actual time=165.059..276.419 rows=394 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 0.406 276.038 ↑ 14.3 394 3 / 3

Hash Left Join (cost=671.53..151,558.16 rows=5,621 width=611) (actual time=165.039..276.038 rows=394 loops=3)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 0.387 274.878 ↑ 14.3 394 3 / 3

Hash Left Join (cost=639.26..151,511.14 rows=5,621 width=597) (actual time=164.272..274.878 rows=394 loops=3)

  • Hash Cond: (si.currency_id = c.id)
6. 0.601 274.474 ↑ 14.3 394 3 / 3

Nested Loop Left Join (cost=638.13..151,484.83 rows=5,621 width=601) (actual time=164.238..274.474 rows=394 loops=3)

7. 0.378 273.086 ↑ 14.3 394 3 / 3

Hash Left Join (cost=637.70..148,688.25 rows=5,621 width=601) (actual time=164.221..273.086 rows=394 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 0.372 271.139 ↑ 14.3 394 3 / 3

Hash Left Join (cost=426.57..148,462.34 rows=5,621 width=591) (actual time=162.637..271.139 rows=394 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.399 269.216 ↑ 14.3 394 3 / 3

Hash Left Join (cost=215.45..148,236.43 rows=5,621 width=581) (actual time=161.070..269.216 rows=394 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 0.411 268.793 ↑ 14.3 394 3 / 3

Hash Left Join (cost=214.13..148,215.88 rows=5,621 width=569) (actual time=161.032..268.793 rows=394 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 0.637 266.645 ↑ 14.3 394 3 / 3

Nested Loop Left Join (cost=3.01..147,989.97 rows=5,621 width=559) (actual time=159.272..266.645 rows=394 loops=3)

12. 0.710 263.252 ↑ 14.3 394 3 / 3

Nested Loop Left Join (cost=2.59..145,214.01 rows=5,621 width=443) (actual time=158.086..263.252 rows=394 loops=3)

13. 0.766 261.361 ↑ 14.3 394 3 / 3

Nested Loop (cost=2.17..142,545.25 rows=5,621 width=427) (actual time=157.538..261.361 rows=394 loops=3)

14. 21.233 259.763 ↑ 13.5 416 3 / 3

Nested Loop (cost=1.73..128,761.94 rows=5,623 width=236) (actual time=157.517..259.763 rows=416 loops=3)

15. 103.176 185.407 ↑ 2.6 26,562 3 / 3

Hash Join (cost=1.30..9,862.01 rows=69,276 width=24) (actual time=157.485..185.407 rows=26,562 loops=3)

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

17. 0.005 0.019 ↑ 1.0 4 3 / 3

Hash (cost=1.25..1.25 rows=4 width=16) (actual time=0.019..0.019 rows=4 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
18. 0.014 0.014 ↑ 1.0 4 3 / 3

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

  • Filter: (buyer_id = 67,002,626)
  • Rows Removed by Filter: 16
19. 53.123 53.123 ↓ 0.0 0 79,685 / 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=79,685)

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

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

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

Index Scan using financingcontextbase_pkey on financingcontextbase ps_apffc_fc_fcb (cost=0.42..0.47 rows=1 width=24) (actual time=0.003..0.003 rows=1 loops=1,181)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
22. 2.756 2.756 ↑ 1.0 1 1,181 / 3

Index Scan using apffinancingcontext_pkey on apffinancingcontext ps_apffc_fc_afc (cost=0.42..0.49 rows=1 width=132) (actual time=0.007..0.007 rows=1 loops=1,181)

  • Index Cond: (ps_apffc_fc_fcb.id = id)
23. 0.704 1.737 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2,048 Batches: 1 Memory Usage: 119kB
24. 1.033 1.033 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase ps_eps_t_bc_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.011..1.033 rows=1,650 loops=3)

25. 0.010 0.024 ↑ 1.0 14 3 / 3

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

  • Buckets: 1,024 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.698 1.551 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2,048 Batches: 1 Memory Usage: 119kB
28. 0.853 0.853 ↑ 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.002..0.853 rows=1,650 loops=3)

29. 0.714 1.569 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2,048 Batches: 1 Memory Usage: 119kB
30. 0.855 0.855 ↑ 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.855 rows=1,650 loops=3)

31. 0.787 0.787 ↑ 1.0 1 1,181 / 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=1,181)

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

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

  • Buckets: 1,024 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.389 0.754 ↑ 1.0 945 3 / 3

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 68kB
35. 0.365 0.365 ↑ 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.365 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: 1,024 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: 1,024 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. 1.181 1.181 ↑ 1.0 1 1,181

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

42. 0.000 0.000 ↓ 0.0 0 1,181

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=1,181)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.942 ms
Execution time : 291.762 ms