explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 48kl

Settings
# exclusive inclusive rows x rows loops node
1. 9.964 1,440.729 ↑ 2.9 5,438 1

Gather (cost=6,105.27..444,584.30 rows=15,601 width=3,059) (actual time=1,384.857..1,440.729 rows=5,438 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
2. 1.026 1,425.327 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,105.27..314,603.03 rows=3,900 width=2,702) (actual time=1,378.011..1,425.327 rows=1,088 loops=5)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 1.554 1,424.297 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,095.04..314,578.17 rows=3,900 width=2,702) (actual time=1,377.992..1,424.297 rows=1,088 loops=5)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 0.961 1,422.739 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,084.82..314,557.71 rows=3,900 width=1,658) (actual time=1,377.972..1,422.739 rows=1,088 loops=5)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 1.845 1,421.774 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,062.89..314,525.55 rows=3,900 width=1,570) (actual time=1,377.955..1,421.774 rows=1,088 loops=5)

  • Hash Cond: (si.currency_id = c.id)
6. 1.571 1,419.915 ↑ 3.6 1,088 5 / 5

Nested Loop Left Join (cost=5,061.76..314,506.95 rows=3,900 width=1,062) (actual time=1,377.926..1,419.915 rows=1,088 loops=5)

7. 1.042 1,413.994 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,061.33..312,566.60 rows=3,900 width=1,062) (actual time=1,377.910..1,413.994 rows=1,088 loops=5)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 1.031 1,411.309 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=4,850.20..312,345.21 rows=3,900 width=1,052) (actual time=1,376.251..1,411.309 rows=1,088 loops=5)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 2.275 1,409.145 ↑ 3.6 1,088 5 / 5

Nested Loop (cost=4,841.89..312,283.28 rows=3,900 width=1,042) (actual time=1,375.103..1,409.145 rows=1,088 loops=5)

10. 0.956 1,403.607 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=4,841.47..310,128.19 rows=3,900 width=1,034) (actual time=1,375.085..1,403.607 rows=1,088 loops=5)

  • Hash Cond: (ps_ddeps.id = ddbceps.id)
11. 1.123 1,402.636 ↑ 3.6 1,088 5 / 5

Nested Loop (cost=4,789.85..310,066.33 rows=3,900 width=1,034) (actual time=1,375.051..1,402.636 rows=1,088 loops=5)

12. 5.857 1,397.163 ↑ 3.6 1,088 5 / 5

Hash Join (cost=4,789.43..308,354.04 rows=3,900 width=1,026) (actual time=1,375.029..1,397.163 rows=1,088 loops=5)

  • Hash Cond: (si.originatordivision_id = od_db.id)
13. 12.786 1,391.285 ↑ 5.2 10,570 5 / 5

Nested Loop (cost=4,788.24..308,166.14 rows=54,602 width=420) (actual time=1,302.860..1,391.285 rows=10,570 loops=5)

14. 627.707 1,346.542 ↑ 5.1 10,652 5 / 5

Parallel Hash Join (cost=4,787.81..273,148.64 rows=54,620 width=228) (actual time=1,302.828..1,346.542 rows=10,652 loops=5)

  • Hash Cond: (ps_eps.id = ps_ddeps.id)
15. 669.504 669.504 ↑ 1.2 1,083,659 5 / 5

Parallel Seq Scan on earlypaymentsettlement ps_eps (cost=0.00..264,805.63 rows=1,354,362 width=220) (actual time=0.007..669.504 rows=1,083,659 loops=5)

  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 189854
16. 29.573 49.331 ↑ 2.9 51,360 5 / 5

Parallel Hash (cost=2,899.58..2,899.58 rows=151,058 width=8) (actual time=49.331..49.331 rows=51,360 loops=5)

  • Buckets: 262144 Batches: 1 Memory Usage: 12160kB
17. 19.758 19.758 ↑ 2.9 51,360 5 / 5

Parallel Seq Scan on ddearlypaymentsettlement ps_ddeps (cost=0.00..2,899.58 rows=151,058 width=8) (actual time=0.006..19.758 rows=51,360 loops=5)

18. 31.957 31.957 ↑ 1.0 1 53,261 / 5

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..0.64 rows=1 width=208) (actual time=0.003..0.003 rows=1 loops=53,261)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
19. 0.005 0.021 ↑ 1.0 1 5 / 5

Hash (cost=1.18..1.18 rows=1 width=622) (actual time=0.021..0.021 rows=1 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
20. 0.016 0.016 ↑ 1.0 1 5 / 5

Seq Scan on divisionbase od_db (cost=0.00..1.18 rows=1 width=622) (actual time=0.015..0.016 rows=1 loops=5)

  • Filter: (buyer_id = 66895525)
  • Rows Removed by Filter: 13
21. 4.350 4.350 ↑ 1.0 1 5,438 / 5

Index Scan using ddsuppliercentricearlypaymentsettlement_pkey on ddsuppliercentricearlypaymentsettlement ddsceps (cost=0.42..0.44 rows=1 width=16) (actual time=0.004..0.004 rows=1 loops=5,438)

  • Index Cond: (id = ps_eps.id)
22. 0.000 0.015 ↓ 0.0 0 5 / 5

Hash (cost=28.50..28.50 rows=1,850 width=8) (actual time=0.015..0.015 rows=0 loops=5)

  • Buckets: 2048 Batches: 1 Memory Usage: 16kB
23. 0.015 0.015 ↓ 0.0 0 5 / 5

Seq Scan on ddbuyercentricearlypaymentsettlement ddbceps (cost=0.00..28.50 rows=1,850 width=8) (actual time=0.014..0.015 rows=0 loops=5)

24. 3.263 3.263 ↑ 1.0 1 5,438 / 5

Index Scan using financingcontextbase_pkey on financingcontextbase ps_ddps_fc_fcb (cost=0.42..0.55 rows=1 width=24) (actual time=0.003..0.003 rows=1 loops=5,438)

  • Index Cond: (id = ddsceps.financingcontext_id)
25. 0.007 1.133 ↑ 1.0 1 5 / 5

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=1.133..1.133 rows=1 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
26. 1.126 1.126 ↑ 1.0 1 5 / 5

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..8.29 rows=1 width=26) (actual time=1.125..1.126 rows=1 loops=5)

  • Index Cond: (id = 66895525)
27. 0.709 1.643 ↑ 1.0 1,650 5 / 5

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
28. 0.934 0.934 ↑ 1.0 1,650 5 / 5

Seq Scan on corporatebase s_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.007..0.934 rows=1,650 loops=5)

29. 4.350 4.350 ↑ 1.0 1 5,438 / 5

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..0.50 rows=1 width=16) (actual time=0.004..0.004 rows=1 loops=5,438)

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

Hash (cost=1.06..1.06 rows=6 width=524) (actual time=0.014..0.014 rows=6 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
31. 0.008 0.008 ↑ 1.0 6 5 / 5

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=524) (actual time=0.006..0.008 rows=6 loops=5)

32. 0.000 0.004 ↓ 0.0 0 5 / 5

Hash (cost=15.30..15.30 rows=530 width=104) (actual time=0.004..0.004 rows=0 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
33. 0.004 0.004 ↓ 0.0 0 5 / 5

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..15.30 rows=530 width=104) (actual time=0.003..0.004 rows=0 loops=5)

34. 0.001 0.004 ↓ 0.0 0 5 / 5

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

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
35. 0.003 0.003 ↓ 0.0 0 5 / 5

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

36. 0.000 0.004 ↓ 0.0 0 5 / 5

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.004..0.004 rows=0 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
37. 0.004 0.004 ↓ 0.0 0 5 / 5

Seq Scan on bankpaymenttransaction bpt (cost=0.00..10.10 rows=10 width=16) (actual time=0.003..0.004 rows=0 loops=5)

38.          

SubPlan (for Gather)

39. 5.438 5.438 ↑ 1.0 1 5,438

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

40. 0.000 0.000 ↓ 0.0 0 5,438

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=5,438)

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