explain.depesz.com

PostgreSQL's explain analyze made readable

Result: pthk

Settings
# exclusive inclusive rows x rows loops node
1. 92.563 2,273.610 ↓ 1.0 207,881 1

Gather (cost=18,476.90..1,994,711.62 rows=207,703 width=1,826) (actual time=221.766..2,273.610 rows=207,881 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 67.146 1,973.166 ↑ 1.2 69,294 3 / 3

Hash Left Join (cost=17,476.90..275,488.55 rows=86,543 width=1,639) (actual time=216.238..1,973.166 rows=69,294 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 62.392 1,906.016 ↑ 1.2 69,294 3 / 3

Hash Left Join (cost=17,466.67..275,153.78 rows=86,543 width=1,639) (actual time=216.211..1,906.016 rows=69,294 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 60.896 1,843.617 ↑ 1.2 69,294 3 / 3

Hash Left Join (cost=17,456.45..274,916.38 rows=86,543 width=595) (actual time=216.188..1,843.617 rows=69,294 loops=3)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 64.830 1,781.452 ↑ 1.2 69,294 3 / 3

Hash Left Join (cost=17,424.18..274,656.94 rows=86,543 width=581) (actual time=214.904..1,781.452 rows=69,294 loops=3)

  • Hash Cond: (si.currency_id = c.id)
6. 110.327 1,716.607 ↑ 1.2 69,294 3 / 3

Nested Loop Left Join (cost=17,423.05..274,268.16 rows=86,543 width=585) (actual time=214.875..1,716.607 rows=69,294 loops=3)

7. 66.245 1,398.399 ↑ 1.2 69,294 3 / 3

Hash Left Join (cost=17,422.62..231,209.91 rows=86,543 width=585) (actual time=214.859..1,398.399 rows=69,294 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 66.503 1,330.546 ↑ 1.2 69,294 3 / 3

Hash Left Join (cost=17,211.49..230,771.03 rows=86,543 width=575) (actual time=213.231..1,330.546 rows=69,294 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 68.182 1,262.291 ↑ 1.2 69,294 3 / 3

Hash Join (cost=17,000.37..230,332.15 rows=86,543 width=565) (actual time=211.465..1,262.291 rows=69,294 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 80.385 1,194.082 ↑ 1.2 69,294 3 / 3

Parallel Hash Left Join (cost=16,999.05..230,034.89 rows=86,543 width=553) (actual time=211.377..1,194.082 rows=69,294 loops=3)

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
11. 75.488 1,028.772 ↑ 1.2 69,294 3 / 3

Parallel Hash Left Join (cost=9,853.96..222,662.62 rows=86,543 width=437) (actual time=125.595..1,028.772 rows=69,294 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
12. 87.811 828.750 ↑ 1.2 69,294 3 / 3

Nested Loop (cost=10.55..212,592.04 rows=86,543 width=437) (actual time=0.158..828.750 rows=69,294 loops=3)

13. 114.990 533.007 ↑ 1.2 69,311 3 / 3

Nested Loop (cost=10.12..159,558.27 rows=86,595 width=246) (actual time=0.140..533.007 rows=69,311 loops=3)

14. 126.277 210.085 ↑ 1.2 69,311 3 / 3

Hash Join (cost=9.69..10,933.35 rows=86,595 width=34) (actual time=0.117..210.085 rows=69,311 loops=3)

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

16. 0.017 0.087 ↑ 1.0 5 3 / 3

Hash (cost=9.62..9.62 rows=5 width=26) (actual time=0.087..0.087 rows=5 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
17. 0.009 0.070 ↑ 1.0 5 3 / 3

Nested Loop Left Join (cost=0.28..9.62 rows=5 width=26) (actual time=0.062..0.070 rows=5 loops=3)

  • Join Filter: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
18. 0.021 0.021 ↑ 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.017..0.021 rows=5 loops=3)

  • Filter: (bank_id = 3053)
  • Rows Removed by Filter: 15
19. 0.003 0.040 ↑ 1.0 1 15 / 3

Materialize (cost=0.28..8.30 rows=1 width=26) (actual time=0.008..0.008 rows=1 loops=15)

20. 0.037 0.037 ↑ 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.037..0.037 rows=1 loops=3)

  • Index Cond: (id = 3053)
21. 207.932 207.932 ↑ 1.0 1 207,932 / 3

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

  • Index Cond: (id = ps_apfeps.id)
  • Filter: (creationdate >= '2012-01-01'::date)
22. 207.932 207.932 ↑ 1.0 1 207,932 / 3

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

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
23. 67.716 124.534 ↑ 1.3 131,499 3 / 3

Parallel Hash (cost=7,788.74..7,788.74 rows=164,374 width=8) (actual time=124.534..124.534 rows=131,499 loops=3)

  • Buckets: 524288 Batches: 1 Memory Usage: 19584kB
24. 56.818 56.818 ↑ 1.3 131,499 3 / 3

Parallel Seq Scan on financingcontextbase ps_apffc_fc_fcb (cost=0.00..7,788.74 rows=164,374 width=8) (actual time=0.007..56.818 rows=131,499 loops=3)

25. 44.867 84.925 ↑ 1.2 79,932 3 / 3

Parallel Hash (cost=5,896.15..5,896.15 rows=99,915 width=132) (actual time=84.925..84.925 rows=79,932 loops=3)

  • Buckets: 262144 Batches: 1 Memory Usage: 20864kB
26. 40.058 40.058 ↑ 1.2 79,932 3 / 3

Parallel Seq Scan on apffinancingcontext ps_apffc_fc_afc (cost=0.00..5,896.15 rows=99,915 width=132) (actual time=0.005..40.058 rows=79,932 loops=3)

27. 0.009 0.027 ↑ 1.0 14 3 / 3

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

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

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

29. 0.722 1.752 ↑ 1.0 1,650 3 / 3

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

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

31. 0.713 1.608 ↑ 1.0 1,650 3 / 3

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

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

33. 207.881 207.881 ↑ 1.0 1 207,881 / 3

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..0.50 rows=1 width=16) (actual time=0.003..0.003 rows=1 loops=207,881)

  • Index Cond: (si.importbatch_id = id)
34. 0.006 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
35. 0.009 0.009 ↑ 1.0 6 3 / 3

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

36. 0.897 1.269 ↑ 1.0 945 3 / 3

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

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

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

38. 0.001 0.007 ↓ 0.0 0 3 / 3

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

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

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

40. 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
41. 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)

42.          

SubPlan (for Gather)

43. 207.881 207.881 ↑ 1.0 1 207,881

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

44. 0.000 0.000 ↓ 0.0 0 207,881

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=207,881)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.430 ms
Execution time : 2,326.540 ms