explain.depesz.com

PostgreSQL's explain analyze made readable

Result: hYr7

Settings
# exclusive inclusive rows x rows loops node
1. 18.666 442.688 ↓ 9.5 833 1

Gather (cost=10,283.41..35,831.99 rows=88 width=3,059) (actual time=432.335..442.688 rows=833 loops=1)

  • Workers Planned: 3
  • Workers Launched: 3
2. 0.345 422.356 ↓ 7.4 208 4 / 4

Nested Loop Left Join (cost=9,283.41..34,104.45 rows=28 width=2,694) (actual time=416.707..422.356 rows=208 loops=4)

3. 0.341 422.011 ↓ 7.4 208 4 / 4

Nested Loop Left Join (cost=9,283.27..34,099.89 rows=28 width=2,694) (actual time=416.697..422.011 rows=208 loops=4)

4. 0.329 421.670 ↓ 7.4 208 4 / 4

Nested Loop Left Join (cost=9,283.14..34,095.61 rows=28 width=1,650) (actual time=416.688..421.670 rows=208 loops=4)

5. 0.204 421.341 ↓ 7.4 208 4 / 4

Hash Left Join (cost=9,282.99..34,090.90 rows=28 width=1,562) (actual time=416.679..421.341 rows=208 loops=4)

  • Hash Cond: (si.currency_id = c.id)
6. 0.318 421.107 ↓ 7.4 208 4 / 4

Nested Loop Left Join (cost=9,281.85..34,089.63 rows=28 width=1,054) (actual time=416.641..421.107 rows=208 loops=4)

7. 0.228 420.373 ↓ 7.4 208 4 / 4

Nested Loop Left Join (cost=9,281.42..34,075.70 rows=28 width=1,054) (actual time=416.623..420.373 rows=208 loops=4)

8. 0.214 419.729 ↓ 7.4 208 4 / 4

Hash Left Join (cost=9,281.14..34,067.44 rows=28 width=1,044) (actual time=416.614..419.729 rows=208 loops=4)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.292 419.504 ↓ 7.4 208 4 / 4

Nested Loop (cost=9,272.83..34,058.75 rows=28 width=1,034) (actual time=416.589..419.504 rows=208 loops=4)

10. 0.262 418.796 ↓ 7.4 208 4 / 4

Hash Join (cost=9,272.41..34,043.27 rows=28 width=1,034) (actual time=416.576..418.796 rows=208 loops=4)

  • Hash Cond: (si.originatordivision_id = od_db.id)
11. 0.398 418.512 ↑ 1.9 208 4 / 4

Nested Loop (cost=9,271.22..34,040.73 rows=398 width=428) (actual time=416.498..418.512 rows=208 loops=4)

12. 3.812 417.675 ↑ 1.8 220 4 / 4

Nested Loop (cost=9,270.79..33,031.56 rows=398 width=236) (actual time=416.389..417.675 rows=220 loops=4)

13. 28.651 403.718 ↑ 1.0 5,072 4 / 4

Merge Join (cost=9,270.36..15,939.82 rows=5,104 width=32) (actual time=388.204..403.718 rows=5,072 loops=4)

  • Merge Cond: (ps_ddeps.id = ddsceps.id)
14. 29.714 29.714 ↑ 1.3 64,200 4 / 4

Parallel Index Only Scan using ddearlypaymentsettlement_pkey on ddearlypaymentsettlement ps_ddeps (cost=0.42..6,332.80 rows=82,838 width=8) (actual time=0.017..29.714 rows=64,200 loops=4)

  • Heap Fetches: 256,799
15. 13.550 345.353 ↑ 1.1 15,057 4 / 4

Sort (cost=9,269.94..9,309.49 rows=15,822 width=24) (actual time=341.107..345.353 rows=15,057 loops=4)

  • Sort Key: ddsceps.id
  • Sort Method: quicksort Memory: 2,354kB
  • Worker 0: Sort Method: quicksort Memory: 2,354kB
  • Worker 1: Sort Method: quicksort Memory: 2,354kB
  • Worker 2: Sort Method: quicksort Memory: 2,354kB
16. 112.851 331.803 ↓ 1.3 20,289 4 / 4

Hash Join (cost=3,088.17..8,166.38 rows=15,822 width=24) (actual time=302.265..331.803 rows=20,289 loops=4)

  • Hash Cond: (ddsceps.financingcontext_id = ddscfc.id)
17. 90.988 90.988 ↑ 1.0 256,798 4 / 4

Seq Scan on ddsuppliercentricearlypaymentsettlement ddsceps (cost=0.00..3,956.99 rows=256,799 width=16) (actual time=0.006..90.988 rows=256,798 loops=4)

18. 6.457 127.964 ↓ 1.6 15,179 4 / 4

Hash (cost=2,968.71..2,968.71 rows=9,557 width=8) (actual time=127.963..127.964 rows=15,179 loops=4)

  • Buckets: 16,384 Batches: 1 Memory Usage: 721kB
19. 67.121 121.507 ↓ 1.6 15,179 4 / 4

Hash Join (cost=21.36..2,968.71 rows=9,557 width=8) (actual time=103.361..121.507 rows=15,179 loops=4)

  • Hash Cond: (ddscfc.paa_id = paa.id)
20. 54.276 54.276 ↑ 1.0 155,112 4 / 4

Seq Scan on ddsuppliercentricfinancingcontext ddscfc (cost=0.00..2,539.12 rows=155,112 width=16) (actual time=0.006..54.276 rows=155,112 loops=4)

21. 0.040 0.110 ↑ 1.0 100 4 / 4

Hash (cost=20.11..20.11 rows=100 width=8) (actual time=0.109..0.110 rows=100 loops=4)

  • Buckets: 1,024 Batches: 1 Memory Usage: 12kB
22. 0.070 0.070 ↑ 1.0 100 4 / 4

Index Scan using paa_buyer_idx on payablesapprovalagreement paa (cost=0.28..20.11 rows=100 width=8) (actual time=0.020..0.070 rows=100 loops=4)

  • Index Cond: (buyer_id = 66,895,525)
23. 10.145 10.145 ↓ 0.0 0 20,289 / 4

Index Scan using earlypaymentsettlement_pkey on earlypaymentsettlement ps_eps (cost=0.43..3.35 rows=1 width=220) (actual time=0.002..0.002 rows=0 loops=20,289)

  • Index Cond: (id = ps_ddeps.id)
  • Filter: (creationdate >= '2019-02-01'::date)
  • Rows Removed by Filter: 1
24. 0.439 0.439 ↑ 1.0 1 878 / 4

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..2.54 rows=1 width=208) (actual time=0.002..0.002 rows=1 loops=878)

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

Hash (cost=1.18..1.18 rows=1 width=622) (actual time=0.022..0.022 rows=1 loops=4)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
26. 0.017 0.017 ↑ 1.0 1 4 / 4

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

  • Filter: (buyer_id = 66,895,525)
  • Rows Removed by Filter: 13
27. 0.416 0.416 ↑ 1.0 1 833 / 4

Index Scan using financingcontextbase_pkey on financingcontextbase ps_ddps_fc_fcb (cost=0.42..0.55 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=833)

  • Index Cond: (id = ddsceps.financingcontext_id)
28. 0.003 0.011 ↑ 1.0 1 4 / 4

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.011..0.011 rows=1 loops=4)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
29. 0.008 0.008 ↑ 1.0 1 4 / 4

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.007..0.008 rows=1 loops=4)

  • Index Cond: (id = 66,895,525)
30. 0.416 0.416 ↑ 1.0 1 833 / 4

Index Scan using corporatebase_pkey on corporatebase s_cb (cost=0.28..0.30 rows=1 width=26) (actual time=0.001..0.002 rows=1 loops=833)

  • Index Cond: (id = si.supplier_id)
31. 0.416 0.416 ↑ 1.0 1 833 / 4

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=833)

  • Index Cond: (si.importbatch_id = id)
32. 0.010 0.030 ↑ 1.0 6 4 / 4

Hash (cost=1.06..1.06 rows=6 width=524) (actual time=0.029..0.030 rows=6 loops=4)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
33. 0.020 0.020 ↑ 1.0 6 4 / 4

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=524) (actual time=0.017..0.020 rows=6 loops=4)

34. 0.000 0.000 ↓ 0.0 0 833 / 4

Index Scan using earlypaymentadvice_pkey on earlypaymentadvice eps_epa (cost=0.15..0.17 rows=1 width=104) (actual time=0.000..0.000 rows=0 loops=833)

  • Index Cond: (id = ps_eps.earlypaymentadvice_id)
35. 0.000 0.000 ↓ 0.0 0 833 / 4

Index Scan using invoicepaymentadvice_pkey on invoicepaymentadvice ipa (cost=0.14..0.15 rows=1 width=1,052) (actual time=0.000..0.000 rows=0 loops=833)

  • Index Cond: (si.paymentadvice_id = id)
36. 0.000 0.000 ↓ 0.0 0 833 / 4

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt (cost=0.14..0.15 rows=1 width=16) (actual time=0.000..0.000 rows=0 loops=833)

  • Index Cond: (mapping_id = ps_eps.earlypaymentmapping_id)
37.          

SubPlan (for Gather)

38. 1.666 1.666 ↑ 1.0 1 833

Aggregate (cost=8.15..8.16 rows=1 width=8) (actual time=0.001..0.002 rows=1 loops=833)

39. 0.000 0.000 ↓ 0.0 0 833

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=833)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 12.665 ms
Execution time : 443.232 ms