explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 8Zee

Settings
# exclusive inclusive rows x rows loops node
1. 47.136 1,199.526 ↑ 3.2 21,157 1

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

  • Workers Planned: 2
  • Workers Launched: 2
2. 7.578 1,131.233 ↑ 4.0 7,052 3 / 3

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

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

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

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

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

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

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

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

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

7. 7.265 1,075.449 ↑ 4.0 7,052 3 / 3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

15. 162.436 788.034 ↑ 4.0 7,110 3 / 3

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

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

17. 165.358 537.846 ↓ 1.3 168,023 3 / 3

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

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

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

Bitmap Index Scan on eps_creation_time_date_idx (cost=0.00..9,556.69 rows=517,368 width=0) (actual time=63.755..63.755 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.012 0.036 ↑ 1.0 20 3 / 3

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

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

23. 65.166 112.915 ↓ 1.0 131,499 3 / 3

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

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

  • Heap Fetches: 0
25. 45.919 87.400 ↑ 1.2 79,932 3 / 3

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

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

27. 0.705 1.839 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
28. 1.134 1.134 ↑ 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.015..1.134 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.022..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.714 1.591 ↑ 1.0 1,650 3 / 3

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

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

33. 0.702 1.566 ↑ 1.0 1,650 3 / 3

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

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
37. 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.006..0.009 rows=6 loops=3)

38. 0.389 0.762 ↑ 1.0 945 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
39. 0.373 0.373 ↑ 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.373 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.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
43. 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)

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.770 ms
Execution time : 1,205.677 ms