explain.depesz.com

PostgreSQL's explain analyze made readable

Result: DeDqb

Settings
# exclusive inclusive rows x rows loops node
1. 18.666 769.329 ↑ 8.2 21,486 1

Gather (cost=18,476.83..1,724,824.88 rows=176,613 width=1,810) (actual time=216.191..769.329 rows=21,486 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 6.870 729.177 ↑ 10.3 7,162 3 / 3

Hash Left Join (cost=17,476.83..262,793.83 rows=73,589 width=1,655) (actual time=210.364..729.177 rows=7,162 loops=3)

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

Hash Left Join (cost=17,466.60..262,507.64 rows=73,589 width=1,655) (actual time=210.347..722.303 rows=7,162 loops=3)

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

Hash Left Join (cost=17,456.38..262,304.24 rows=73,589 width=611) (actual time=210.329..715.852 rows=7,162 loops=3)

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

Hash Left Join (cost=17,424.12..262,078.81 rows=73,589 width=597) (actual time=209.579..708.638 rows=7,162 loops=3)

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

Nested Loop Left Join (cost=17,422.98..261,748.06 rows=73,589 width=601) (actual time=209.551..702.023 rows=7,162 loops=3)

7. 6.859 676.176 ↑ 10.3 7,162 3 / 3

Hash Left Join (cost=17,422.55..225,135.84 rows=73,589 width=601) (actual time=209.535..676.176 rows=7,162 loops=3)

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

Hash Left Join (cost=17,211.42..224,731.05 rows=73,589 width=591) (actual time=208.008..667.804 rows=7,162 loops=3)

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

Hash Left Join (cost=17,000.30..224,326.25 rows=73,589 width=581) (actual time=206.338..659.517 rows=7,162 loops=3)

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

Hash Left Join (cost=16,998.98..224,073.29 rows=73,589 width=569) (actual time=206.301..652.637 rows=7,162 loops=3)

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

Parallel Hash Left Join (cost=16,990.68..223,053.14 rows=73,589 width=559) (actual time=206.251..646.006 rows=7,162 loops=3)

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

Parallel Hash Left Join (cost=9,845.59..215,714.88 rows=73,589 width=443) (actual time=125.974..557.968 rows=7,162 loops=3)

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

Nested Loop (cost=2.18..205,678.29 rows=73,589 width=427) (actual time=0.092..424.503 rows=7,162 loops=3)

14. 63.747 396.597 ↑ 10.3 7,179 3 / 3

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

15. 115.578 194.229 ↑ 1.2 69,311 3 / 3

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

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

17. 0.008 0.026 ↑ 1.0 5 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
18. 0.018 0.018 ↑ 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.015..0.018 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. 14.358 14.358 ↑ 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.002..0.002 rows=1 loops=21,537)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
21. 67.679 125.147 ↑ 1.3 131,499 3 / 3

Parallel Hash (cost=7,788.74..7,788.74 rows=164,374 width=24) (actual time=125.147..125.147 rows=131,499 loops=3)

  • Buckets: 524288 Batches: 1 Memory Usage: 26656kB
22. 57.468 57.468 ↑ 1.3 131,499 3 / 3

Parallel Seq Scan on financingcontextbase ps_apffc_fc_fcb (cost=0.00..7,788.74 rows=164,374 width=24) (actual time=0.007..57.468 rows=131,499 loops=3)

23. 42.249 79.482 ↑ 1.2 79,932 3 / 3

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

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

25. 0.005 0.035 ↑ 1.0 1 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
26. 0.030 0.030 ↑ 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.029..0.030 rows=1 loops=3)

  • Index Cond: (id = 3053)
27. 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
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.688 1.656 ↑ 1.0 1,650 3 / 3

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

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

31. 0.682 1.513 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
32. 0.831 0.831 ↑ 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.831 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.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.007..0.009 rows=6 loops=3)

36. 0.387 0.737 ↑ 1.0 945 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
37. 0.350 0.350 ↑ 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.350 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.004..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 : 7.793 ms
Execution time : 775.404 ms