explain.depesz.com

PostgreSQL's explain analyze made readable

Result: J46v

Settings
# exclusive inclusive rows x rows loops node
1. 19.168 782.492 ↑ 8.2 21,486 1

Gather (cost=17,805.61..1,724,153.62 rows=176,613 width=1,826) (actual time=221.029..782.492 rows=21,486 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 6.867 741.838 ↑ 10.3 7,162 3 / 3

Hash Left Join (cost=16,805.61..262,122.58 rows=73,589 width=1,639) (actual time=215.012..741.838 rows=7,162 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 6.362 734.967 ↑ 10.3 7,162 3 / 3

Hash Left Join (cost=16,795.38..261,836.38 rows=73,589 width=1,639) (actual time=214.994..734.967 rows=7,162 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 6.230 728.600 ↑ 10.3 7,162 3 / 3

Hash Left Join (cost=16,785.16..261,632.99 rows=73,589 width=595) (actual time=214.974..728.600 rows=7,162 loops=3)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 6.627 721.649 ↑ 10.3 7,162 3 / 3

Hash Left Join (cost=16,752.90..261,407.55 rows=73,589 width=581) (actual time=214.240..721.649 rows=7,162 loops=3)

  • Hash Cond: (si.currency_id = c.id)
6. 12.600 715.003 ↑ 10.3 7,162 3 / 3

Nested Loop Left Join (cost=16,751.76..261,076.80 rows=73,589 width=585) (actual time=214.206..715.003 rows=7,162 loops=3)

7. 6.796 688.079 ↑ 10.3 7,162 3 / 3

Hash Left Join (cost=16,751.33..224,464.59 rows=73,589 width=585) (actual time=214.190..688.079 rows=7,162 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 6.565 679.761 ↑ 10.3 7,162 3 / 3

Hash Left Join (cost=16,540.20..224,059.79 rows=73,589 width=575) (actual time=212.652..679.761 rows=7,162 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 7.221 671.534 ↑ 10.3 7,162 3 / 3

Hash Join (cost=16,329.08..223,655.00 rows=73,589 width=565) (actual time=210.976..671.534 rows=7,162 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 6.852 664.283 ↑ 10.3 7,162 3 / 3

Hash Left Join (cost=16,327.76..223,402.04 rows=73,589 width=553) (actual time=210.879..664.283 rows=7,162 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 8.827 657.357 ↑ 10.3 7,162 3 / 3

Parallel Hash Left Join (cost=16,319.46..222,381.88 rows=73,589 width=543) (actual time=210.790..657.357 rows=7,162 loops=3)

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
12. 8.396 561.307 ↑ 10.3 7,162 3 / 3

Parallel Hash Left Join (cost=9,174.37..215,043.62 rows=73,589 width=427) (actual time=122.686..561.307 rows=7,162 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
13. 8.546 431.321 ↑ 10.3 7,162 3 / 3

Nested Loop (cost=2.18..205,678.26 rows=73,589 width=427) (actual time=0.110..431.321 rows=7,162 loops=3)

14. 70.500 401.238 ↑ 10.3 7,179 3 / 3

Nested Loop (cost=1.75..158,486.94 rows=73,612 width=236) (actual time=0.084..401.238 rows=7,179 loops=3)

15. 114.461 192.117 ↑ 1.2 69,311 3 / 3

Hash Join (cost=1.31..9,862.02 rows=86,595 width=24) (actual time=0.057..192.117 rows=69,311 loops=3)

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

17. 0.005 0.027 ↑ 1.0 5 3 / 3

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

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

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.25 rows=5 width=16) (actual time=0.018..0.022 rows=5 loops=3)

  • Filter: (bank_id = 3053)
  • Rows Removed by Filter: 15
19. 138.621 138.621 ↓ 0.0 0 207,932 / 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=207,932)

  • Index Cond: (id = ps_apfeps.id)
  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 1
20. 21.537 21.537 ↑ 1.0 1 21,537 / 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=21,537)

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

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

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

  • Heap Fetches: 0
23. 46.500 87.223 ↑ 1.2 79,932 3 / 3

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

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

25. 0.003 0.074 ↑ 1.0 1 3 / 3

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.074..0.074 rows=1 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
26. 0.071 0.071 ↑ 1.0 1 3 / 3

Index Scan using corporatebase_pkey on corporatebase ps_eps_t_bc_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.070..0.071 rows=1 loops=3)

  • Index Cond: (id = 3053)
27. 0.013 0.030 ↑ 1.0 14 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
28. 0.017 0.017 ↑ 1.0 14 3 / 3

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (actual time=0.010..0.017 rows=14 loops=3)

29. 0.672 1.662 ↑ 1.0 1,650 3 / 3

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

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

31. 0.683 1.522 ↑ 1.0 1,650 3 / 3

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

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

33. 14.324 14.324 ↑ 1.0 1 21,486 / 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,486)

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
35. 0.014 0.014 ↑ 1.0 6 3 / 3

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=12) (actual time=0.011..0.014 rows=6 loops=3)

36. 0.382 0.721 ↑ 1.0 945 3 / 3

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

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

38. 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
39. 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)

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

42.          

SubPlan (for Gather)

43. 21.486 21.486 ↑ 1.0 1 21,486

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

44. 0.000 0.000 ↓ 0.0 0 21,486

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,486)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 11.588 ms
Execution time : 788.349 ms