explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 0vqH

Settings
# exclusive inclusive rows x rows loops node
1. 7.064 15.202 ↓ 5.5 299 1

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

  • Workers Planned: 1
  • Workers Launched: 1
2. 0.233 7.839 ↓ 4.7 150 2 / 2

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

3. 0.227 7.606 ↓ 4.7 150 2 / 2

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

4. 0.232 7.379 ↓ 4.7 150 2 / 2

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

5. 0.152 7.147 ↓ 4.7 150 2 / 2

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

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

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

7. 0.315 6.366 ↓ 4.7 150 2 / 2

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

8. 0.189 5.901 ↓ 4.7 150 2 / 2

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

9. 0.151 5.413 ↓ 4.7 150 2 / 2

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

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

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

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

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

12. 0.224 4.502 ↓ 4.7 150 2 / 2

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

13. 0.217 3.979 ↓ 4.7 150 2 / 2

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

14. 0.304 3.314 ↓ 4.7 150 2 / 2

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

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

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

16. 0.347 0.472 ↑ 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.148..0.472 rows=792 loops=2)

  • Recheck Cond: (creationdate = '2019-01-01'::date)
  • Heap Blocks: exact=41
17. 0.124 0.124 ↑ 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.249..0.249 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.024 ↑ 1.0 5 2 / 2

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
20. 0.017 0.017 ↑ 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.013..0.017 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. 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=132) (actual time=0.002..0.002 rows=1 loops=299)

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

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

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

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
27. 0.013 0.013 ↑ 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.013 rows=14 loops=2)

28. 0.299 0.299 ↑ 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.002..0.002 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.005 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.007 0.007 ↑ 1.0 6 2 / 2

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=12) (actual time=0.005..0.007 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.663 ms
Execution time : 15.640 ms