explain.depesz.com

PostgreSQL's explain analyze made readable

Result: uKfK

Settings
# exclusive inclusive rows x rows loops node
1. 39.336 1,156.762 ↑ 3.2 21,157 1

Gather (cost=276,104.72..927,610.05 rows=67,453 width=1,826) (actual time=740.887..1,156.762 rows=21,157 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 7.026 1,096.269 ↑ 4.0 7,052 3 / 3

Hash Left Join (cost=275,104.72..368,605.10 rows=28,105 width=1,639) (actual time=734.327..1,096.269 rows=7,052 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 6.571 1,089.239 ↑ 4.0 7,052 3 / 3

Hash Left Join (cost=275,094.49..368,489.47 rows=28,105 width=1,639) (actual time=734.307..1,089.239 rows=7,052 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 6.583 1,082.663 ↑ 4.0 7,052 3 / 3

Hash Left Join (cost=275,084.27..368,405.47 rows=28,105 width=595) (actual time=734.287..1,082.663 rows=7,052 loops=3)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 6.623 1,075.395 ↑ 4.0 7,052 3 / 3

Hash Left Join (cost=275,052.00..368,299.44 rows=28,105 width=581) (actual time=733.587..1,075.395 rows=7,052 loops=3)

  • Hash Cond: (si.currency_id = c.id)
6. 11.090 1,068.758 ↑ 4.0 7,052 3 / 3

Nested Loop Left Join (cost=275,050.87..368,172.42 rows=28,105 width=585) (actual time=733.559..1,068.758 rows=7,052 loops=3)

7. 6.673 1,043.563 ↑ 4.0 7,052 3 / 3

Hash Left Join (cost=275,050.44..354,189.53 rows=28,105 width=585) (actual time=733.541..1,043.563 rows=7,052 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 6.578 1,035.426 ↑ 4.0 7,052 3 / 3

Hash Left Join (cost=274,839.31..353,904.45 rows=28,105 width=575) (actual time=732.063..1,035.426 rows=7,052 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 7.183 1,027.380 ↑ 4.0 7,052 3 / 3

Hash Left Join (cost=274,628.19..353,619.36 rows=28,105 width=565) (actual time=730.581..1,027.380 rows=7,052 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 6.719 1,020.174 ↑ 4.0 7,052 3 / 3

Hash Left Join (cost=274,626.87..353,521.93 rows=28,105 width=553) (actual time=730.542..1,020.174 rows=7,052 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 8.168 1,011.700 ↑ 4.0 7,052 3 / 3

Parallel Hash Left Join (cost=274,415.75..353,236.84 rows=28,105 width=543) (actual time=728.766..1,011.700 rows=7,052 loops=3)

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
12. 8.216 918.234 ↑ 4.0 7,052 3 / 3

Parallel Hash Left Join (cost=267,270.66..346,017.97 rows=28,105 width=427) (actual time=642.919..918.234 rows=7,052 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
13. 6.769 803.164 ↑ 4.0 7,052 3 / 3

Hash Join (cost=258,098.47..336,772.01 rows=28,105 width=427) (actual time=535.249..803.164 rows=7,052 loops=3)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
14. 7.513 796.354 ↑ 4.0 7,052 3 / 3

Nested Loop (cost=258,097.02..336,681.15 rows=28,105 width=427) (actual time=535.183..796.354 rows=7,052 loops=3)

15. 151.805 767.512 ↑ 4.0 7,110 3 / 3

Parallel Hash Join (cost=258,096.58..267,764.62 rows=28,115 width=236) (actual time=535.147..767.512 rows=7,110 loops=3)

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

17. 163.335 534.481 ↓ 1.3 168,023 3 / 3

Parallel Hash (cost=256,479.81..256,479.81 rows=129,342 width=220) (actual time=534.481..534.481 rows=168,023 loops=3)

  • Buckets: 524288 Batches: 1 Memory Usage: 118656kB
18. 351.785 371.146 ↓ 1.3 168,023 3 / 3

Parallel Bitmap Heap Scan on earlypaymentsettlement ps_eps (cost=9,686.03..256,479.81 rows=129,342 width=220) (actual time=106.665..371.146 rows=168,023 loops=3)

  • Recheck Cond: (creationdate >= '2019-02-01'::date)
  • Heap Blocks: exact=61422
19. 19.361 19.361 ↑ 1.0 504,070 1 / 3

Bitmap Index Scan on earlypaymentsettlement_creationdate_idx (cost=0.00..9,556.69 rows=517,368 width=0) (actual time=58.083..58.083 rows=504,070 loops=1)

  • Index Cond: (creationdate >= '2019-02-01'::date)
20. 21.329 21.329 ↑ 1.0 1 21,329 / 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=21,329)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
21. 0.013 0.041 ↑ 1.0 20 3 / 3

Hash (cost=1.20..1.20 rows=20 width=16) (actual time=0.040..0.041 rows=20 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
22. 0.028 0.028 ↑ 1.0 20 3 / 3

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.20 rows=20 width=16) (actual time=0.021..0.028 rows=20 loops=3)

23. 62.249 106.854 ↓ 1.0 131,499 3 / 3

Parallel Hash (cost=7,581.48..7,581.48 rows=127,257 width=8) (actual time=106.854..106.854 rows=131,499 loops=3)

  • Buckets: 524288 Batches: 1 Memory Usage: 19616kB
24. 44.605 44.605 ↓ 1.0 131,499 3 / 3

Parallel Index Only Scan using financingcontextbase_pkey on financingcontextbase ps_apffc_fc_fcb (cost=0.42..7,581.48 rows=127,257 width=8) (actual time=0.028..44.605 rows=131,499 loops=3)

  • Heap Fetches: 0
25. 44.624 85.298 ↑ 1.2 79,932 3 / 3

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

  • Buckets: 262144 Batches: 1 Memory Usage: 20832kB
26. 40.674 40.674 ↑ 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.006..40.674 rows=79,932 loops=3)

27. 0.669 1.755 ↑ 1.0 1,650 3 / 3

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

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

29. 0.009 0.023 ↑ 1.0 14 3 / 3

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

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

31. 0.664 1.468 ↑ 1.0 1,650 3 / 3

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

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

33. 0.660 1.464 ↑ 1.0 1,650 3 / 3

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

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

35. 14.105 14.105 ↑ 1.0 1 21,157 / 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=21,157)

  • Index Cond: (si.importbatch_id = id)
36. 0.006 0.014 ↑ 1.0 6 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
37. 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)

38. 0.352 0.685 ↑ 1.0 945 3 / 3

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

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

40. 0.001 0.005 ↓ 0.0 0 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
41. 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)

42. 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
43. 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)

44.          

SubPlan (for Gather)

45. 21.157 21.157 ↑ 1.0 1 21,157

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

46. 0.000 0.000 ↓ 0.0 0 21,157

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=21,157)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 9.793 ms
Execution time : 1,162.883 ms