explain.depesz.com

PostgreSQL's explain analyze made readable

Result: rOTz

Settings
# exclusive inclusive rows x rows loops node
1. 0.778 13.423 ↓ 5.5 299 1

Nested Loop Left Join (cost=1,047.28..14,839.11 rows=54 width=1,826) (actual time=2.745..13.423 rows=299 loops=1)

2. 0.436 12.346 ↓ 5.5 299 1

Nested Loop Left Join (cost=1,047.15..14,387.59 rows=54 width=1,639) (actual time=2.730..12.346 rows=299 loops=1)

3. 0.265 11.910 ↓ 5.5 299 1

Nested Loop Left Join (cost=1,047.01..14,379.34 rows=54 width=595) (actual time=2.725..11.910 rows=299 loops=1)

  • Join Filter: (si.originatordivision_id = od_db.id)
  • Rows Removed by Join Filter: 3887
4. 3.919 10.449 ↓ 5.5 299 1

Gather (cost=1,046.74..14,278.69 rows=54 width=573) (actual time=2.706..10.449 rows=299 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
5. 0.253 6.530 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=46.74..13,273.29 rows=32 width=573) (actual time=0.364..6.530 rows=150 loops=2)

6. 0.151 6.277 ↓ 4.7 150 2 / 2

Hash Left Join (cost=46.46..13,262.69 rows=32 width=559) (actual time=0.357..6.277 rows=150 loops=2)

  • Hash Cond: (si.currency_id = c.id)
7. 0.289 6.111 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=45.33..13,261.42 rows=32 width=563) (actual time=0.329..6.111 rows=150 loops=2)

8. 0.188 5.523 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=44.90..13,245.50 rows=32 width=563) (actual time=0.307..5.523 rows=150 loops=2)

9. 0.155 5.036 ↓ 4.7 150 2 / 2

Hash Left Join (cost=44.62..13,236.05 rows=32 width=553) (actual time=0.298..5.036 rows=150 loops=2)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
10. 0.241 4.864 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=36.31..13,227.31 rows=32 width=543) (actual time=0.270..4.864 rows=150 loops=2)

11. 0.192 4.324 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=35.89..13,211.50 rows=32 width=427) (actual time=0.259..4.324 rows=150 loops=2)

12. 0.166 3.833 ↓ 4.7 150 2 / 2

Nested Loop (cost=35.47..13,197.25 rows=32 width=427) (actual time=0.242..3.833 rows=150 loops=2)

13. 0.314 3.219 ↓ 4.7 150 2 / 2

Hash Join (cost=35.03..12,932.87 rows=32 width=236) (actual time=0.229..3.219 rows=150 loops=2)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
14. 0.826 2.885 ↓ 4.5 568 2 / 2

Nested Loop (cost=33.72..12,931.16 rows=127 width=236) (actual time=0.161..2.885 rows=568 loops=2)

15. 0.348 0.474 ↑ 1.2 792 2 / 2

Parallel Bitmap Heap Scan on earlypaymentsettlement ps_eps (cost=33.30..6,257.58 rows=976 width=220) (actual time=0.146..0.474 rows=792 loops=2)

  • Recheck Cond: (creationdate = '2019-01-01'::date)
  • Heap Blocks: exact=31
16. 0.126 0.126 ↑ 1.0 1,585 1 / 2

Bitmap Index Scan on earlypaymentsettlement_creationdate_idx (cost=0.00..32.88 rows=1,660 width=0) (actual time=0.251..0.251 rows=1,585 loops=1)

  • Index Cond: (creationdate = '2019-01-01'::date)
17. 1.585 1.585 ↑ 1.0 1 1,585 / 2

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement ps_apfeps (cost=0.42..6.84 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=1,585)

  • Index Cond: (id = ps_eps.id)
18. 0.006 0.020 ↑ 1.0 5 2 / 2

Hash (cost=1.25..1.25 rows=5 width=16) (actual time=0.019..0.020 rows=5 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
19. 0.014 0.014 ↑ 1.0 5 2 / 2

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.25 rows=5 width=16) (actual time=0.010..0.014 rows=5 loops=2)

  • Filter: (bank_id = 3053)
  • Rows Removed by Filter: 15
20. 0.449 0.449 ↑ 1.0 1 299 / 2

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..8.26 rows=1 width=207) (actual time=0.003..0.003 rows=1 loops=299)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
21. 0.299 0.299 ↑ 1.0 1 299 / 2

Index Only Scan using financingcontextbase_pkey on financingcontextbase ps_apffc_fc_fcb (cost=0.42..0.45 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=299)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
  • Heap Fetches: 0
22. 0.299 0.299 ↑ 1.0 1 299 / 2

Index Scan using apffinancingcontext_pkey on apffinancingcontext ps_apffc_fc_afc (cost=0.42..0.49 rows=1 width=140) (actual time=0.002..0.002 rows=1 loops=299)

  • Index Cond: (ps_apffc_fc_fcb.id = id)
23. 0.003 0.017 ↑ 1.0 1 2 / 2

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.017..0.017 rows=1 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
24. 0.014 0.014 ↑ 1.0 1 2 / 2

Index Scan using corporatebase_pkey on corporatebase ps_eps_t_bc_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.013..0.014 rows=1 loops=2)

  • Index Cond: (id = 3053)
25. 0.299 0.299 ↑ 1.0 1 299 / 2

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

  • Index Cond: (id = si.supplier_id)
26. 0.299 0.299 ↑ 1.0 1 299 / 2

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

  • Index Cond: (si.importbatch_id = id)
27. 0.006 0.015 ↑ 1.0 6 2 / 2

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.015..0.015 rows=6 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
28. 0.009 0.009 ↑ 1.0 6 2 / 2

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=12) (actual time=0.006..0.009 rows=6 loops=2)

29. 0.000 0.000 ↓ 0.0 0 299 / 2

Index Scan using earlypaymentadvice_pkey on earlypaymentadvice eps_epa (cost=0.28..0.33 rows=1 width=30) (actual time=0.000..0.000 rows=0 loops=299)

  • Index Cond: (id = ps_eps.earlypaymentadvice_id)
30. 1.133 1.196 ↑ 1.0 14 299

Materialize (cost=0.28..89.35 rows=14 width=38) (actual time=0.000..0.004 rows=14 loops=299)

31. 0.015 0.063 ↑ 1.0 14 1

Nested Loop Left Join (cost=0.28..89.28 rows=14 width=38) (actual time=0.008..0.063 rows=14 loops=1)

32. 0.006 0.006 ↑ 1.0 14 1

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (actual time=0.002..0.006 rows=14 loops=1)

33. 0.042 0.042 ↑ 1.0 1 14

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..6.29 rows=1 width=26) (actual time=0.003..0.003 rows=1 loops=14)

  • Index Cond: (id = od_db.buyer_id)
34. 0.000 0.000 ↓ 0.0 0 299

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

  • Index Cond: (si.paymentadvice_id = id)
35. 0.000 0.000 ↓ 0.0 0 299

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

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

SubPlan (for Nested Loop Left Join)

37. 0.299 0.299 ↑ 1.0 1 299

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

38. 0.000 0.000 ↓ 0.0 0 299

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

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 7.244 ms
Execution time : 14.807 ms