explain.depesz.com

PostgreSQL's explain analyze made readable

Result: rsGK

Settings
# exclusive inclusive rows x rows loops node
1. 18.915 553.201 ↑ 13.8 10,261 1

Gather (cost=18,008.41..1,384,401.01 rows=141,290 width=1,826) (actual time=363.977..553.201 rows=10,261 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 3.356 524.025 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=17,008.41..214,579.49 rows=58,871 width=1,639) (actual time=357.701..524.025 rows=3,420 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 3.025 520.665 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=16,998.19..214,348.48 rows=58,871 width=1,639) (actual time=357.683..520.665 rows=3,420 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 3.023 517.634 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=16,987.96..214,183.72 rows=58,871 width=595) (actual time=357.663..517.634 rows=3,420 loops=3)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 3.250 513.885 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=16,955.70..213,996.92 rows=58,871 width=581) (actual time=356.923..513.885 rows=3,420 loops=3)

  • Hash Cond: (si.currency_id = c.id)
6. 6.101 510.621 ↑ 17.2 3,420 3 / 3

Nested Loop Left Join (cost=16,954.57..213,732.09 rows=58,871 width=585) (actual time=356.894..510.621 rows=3,420 loops=3)

7. 3.208 497.679 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=16,954.13..184,442.42 rows=58,871 width=585) (actual time=356.876..497.679 rows=3,420 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 3.143 492.960 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=16,743.01..184,076.36 rows=58,871 width=575) (actual time=355.351..492.960 rows=3,420 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 3.372 488.311 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=16,531.88..183,710.30 rows=58,871 width=565) (actual time=353.831..488.311 rows=3,420 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 3.345 484.916 ↑ 17.2 3,420 3 / 3

Hash Left Join (cost=16,530.57..183,507.67 rows=58,871 width=553) (actual time=353.790..484.916 rows=3,420 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 4.262 479.801 ↑ 17.2 3,420 3 / 3

Parallel Hash Left Join (cost=16,319.44..183,141.61 rows=58,871 width=543) (actual time=351.998..479.801 rows=3,420 loops=3)

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
12. 4.390 390.405 ↑ 17.2 3,420 3 / 3

Parallel Hash Left Join (cost=9,174.36..175,841.98 rows=58,871 width=427) (actual time=266.313..390.405 rows=3,420 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
13. 3.757 277.806 ↑ 17.2 3,420 3 / 3

Nested Loop (cost=2.17..166,515.26 rows=58,871 width=427) (actual time=157.263..277.806 rows=3,420 loops=3)

14. 25.690 263.721 ↑ 17.1 3,443 3 / 3

Nested Loop (cost=1.73..128,761.94 rows=58,890 width=236) (actual time=157.239..263.721 rows=3,443 loops=3)

15. 102.035 184.908 ↑ 2.6 26,562 3 / 3

Hash Join (cost=1.30..9,862.01 rows=69,276 width=24) (actual time=157.202..184.908 rows=26,562 loops=3)

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

17. 0.006 0.027 ↑ 1.0 4 3 / 3

Hash (cost=1.25..1.25 rows=4 width=16) (actual time=0.026..0.027 rows=4 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
18. 0.021 0.021 ↑ 1.0 4 3 / 3

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.25 rows=4 width=16) (actual time=0.019..0.021 rows=4 loops=3)

  • Filter: (buyer_id = 67002626)
  • Rows Removed by Filter: 16
19. 53.123 53.123 ↓ 0.0 0 79,685 / 3

Index Scan using earlypaymentsettlement_pkey on earlypaymentsettlement ps_eps (cost=0.43..1.72 rows=1 width=220) (actual time=0.002..0.002 rows=0 loops=79,685)

  • Index Cond: (id = ps_apfeps.id)
  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 1
20. 10.328 10.328 ↑ 1.0 1 10,328 / 3

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

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
21. 62.512 108.209 ↓ 1.0 131,499 3 / 3

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

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

  • Heap Fetches: 0
23. 44.114 85.134 ↑ 1.2 79,932 3 / 3

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

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

25. 0.689 1.770 ↑ 1.0 1,650 3 / 3

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

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

27. 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
28. 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)

29. 0.674 1.506 ↑ 1.0 1,650 3 / 3

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

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

31. 0.679 1.511 ↑ 1.0 1,650 3 / 3

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

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

33. 6.841 6.841 ↑ 1.0 1 10,261 / 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=10,261)

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

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

36. 0.378 0.726 ↑ 1.0 945 3 / 3

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

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

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

38. 0.001 0.006 ↓ 0.0 0 3 / 3

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

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

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

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

42.          

SubPlan (for Gather)

43. 10.261 10.261 ↑ 1.0 1 10,261

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

44. 0.000 0.000 ↓ 0.0 0 10,261

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=10,261)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 9.198 ms
Execution time : 556.094 ms