explain.depesz.com

PostgreSQL's explain analyze made readable

Result: u67c

Settings
# exclusive inclusive rows x rows loops node
1. 44.535 1,176.440 ↑ 3.2 21,157 1

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

  • Workers Planned: 2
  • Workers Launched: 2
2. 6.824 1,110.748 ↑ 4.0 7,052 3 / 3

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

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

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

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

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

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

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

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

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

7. 6.775 1,058.523 ↑ 4.0 7,052 3 / 3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

15. 165.651 785.950 ↑ 4.0 7,110 3 / 3

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

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

17. 163.785 535.006 ↓ 1.3 168,023 3 / 3

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

  • Buckets: 524288 Batches: 1 Memory Usage: 118656kB
18. 351.690 371.221 ↓ 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.342..371.221 rows=168,023 loops=3)

  • Recheck Cond: (creationdate >= '2019-02-01'::date)
  • Heap Blocks: exact=62616
19. 19.531 19.531 ↑ 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.592..58.592 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.011 0.037 ↑ 1.0 20 3 / 3

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

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

23. 62.219 107.117 ↓ 1.0 131,499 3 / 3

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

  • Buckets: 524288 Batches: 1 Memory Usage: 19584kB
24. 44.898 44.898 ↓ 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.029..44.898 rows=131,499 loops=3)

  • Heap Fetches: 0
25. 42.709 82.832 ↑ 1.2 79,932 3 / 3

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

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

27. 0.650 1.687 ↑ 1.0 1,650 3 / 3

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

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

29. 0.008 0.021 ↑ 1.0 14 3 / 3

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

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

31. 0.632 1.408 ↑ 1.0 1,650 3 / 3

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

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

33. 0.643 1.425 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
34. 0.782 0.782 ↑ 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.782 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.005 0.013 ↑ 1.0 6 3 / 3

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.013..0.013 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.006..0.008 rows=6 loops=3)

38. 0.339 0.656 ↑ 1.0 945 3 / 3

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

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

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..20.45 rows=945 width=30) (actual time=0.006..0.317 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.004..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 : 8.698 ms
Execution time : 1,182.106 ms