explain.depesz.com

PostgreSQL's explain analyze made readable

Result: cWDp

Settings
# exclusive inclusive rows x rows loops node
1. 7.316 17.012 ↓ 5.5 299 1

Gather (cost=1,048.60..14,933.81 rows=54 width=1,826) (actual time=4.448..17.012 rows=299 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
2. 0.236 9.397 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=48.60..13,487.10 rows=32 width=1,639) (actual time=0.671..9.397 rows=150 loops=2)

3. 0.235 9.161 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=48.47..13,481.05 rows=32 width=1,639) (actual time=0.665..9.161 rows=150 loops=2)

4. 0.235 8.926 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=48.33..13,476.15 rows=32 width=595) (actual time=0.659..8.926 rows=150 loops=2)

5. 0.154 8.691 ↓ 4.7 150 2 / 2

Hash Left Join (cost=48.06..13,465.56 rows=32 width=581) (actual time=0.652..8.691 rows=150 loops=2)

  • Hash Cond: (si.currency_id = c.id)
6. 0.162 8.525 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=46.92..13,464.29 rows=32 width=585) (actual time=0.629..8.525 rows=150 loops=2)

7. 0.309 7.915 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=46.49..13,448.36 rows=32 width=585) (actual time=0.609..7.915 rows=150 loops=2)

8. 0.310 7.457 ↓ 4.7 150 2 / 2

Nested Loop Left Join (cost=46.21..13,438.92 rows=32 width=575) (actual time=0.600..7.457 rows=150 loops=2)

9. 0.158 6.250 ↓ 4.7 150 2 / 2

Hash Left Join (cost=45.93..13,237.47 rows=32 width=565) (actual time=0.592..6.250 rows=150 loops=2)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 0.155 6.072 ↓ 4.7 150 2 / 2

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

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 0.292 5.897 ↓ 4.7 150 2 / 2

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

12. 0.210 4.409 ↓ 4.7 150 2 / 2

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

13. 0.201 3.900 ↓ 4.7 150 2 / 2

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

14. 0.303 3.251 ↓ 4.7 150 2 / 2

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

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
15. 0.878 2.927 ↓ 4.5 568 2 / 2

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

16. 0.342 0.464 ↑ 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.143..0.464 rows=792 loops=2)

  • Recheck Cond: (creationdate = '2019-01-01'::date)
  • Heap Blocks: exact=39
17. 0.122 0.122 ↑ 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.244..0.244 rows=1,585 loops=1)

  • Index Cond: (creationdate = '2019-01-01'::date)
18. 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)
19. 0.007 0.021 ↑ 1.0 5 2 / 2

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
20. 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
21. 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)
22. 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
23. 1.196 1.196 ↑ 1.0 1 299 / 2

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

  • Index Cond: (ps_apffc_fc_fcb.id = id)
24. 0.004 0.020 ↑ 1.0 1 2 / 2

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
25. 0.016 0.016 ↑ 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.015..0.016 rows=1 loops=2)

  • Index Cond: (id = 3053)
26. 0.008 0.020 ↑ 1.0 14 2 / 2

Hash (cost=1.14..1.14 rows=14 width=28) (actual time=0.020..0.020 rows=14 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
27. 0.012 0.012 ↑ 1.0 14 2 / 2

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (actual time=0.005..0.012 rows=14 loops=2)

28. 0.897 0.897 ↑ 1.0 1 299 / 2

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

  • Index Cond: (id = od_db.buyer_id)
29. 0.149 0.149 ↑ 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.001..0.001 rows=1 loops=299)

  • Index Cond: (id = si.supplier_id)
30. 0.449 0.449 ↑ 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.003..0.003 rows=1 loops=299)

  • Index Cond: (si.importbatch_id = id)
31. 0.004 0.012 ↑ 1.0 6 2 / 2

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

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

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

33. 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)
34. 0.000 0.000 ↓ 0.0 0 299 / 2

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 / 2

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 Gather)

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 : 9.897 ms
Execution time : 17.409 ms