explain.depesz.com

PostgreSQL's explain analyze made readable

Result: symF

Settings
# exclusive inclusive rows x rows loops node
1. 6.105 21.516 ↓ 5.0 75 1

Gather (cost=1,050.06..15,140.99 rows=15 width=1,810) (actual time=19.548..21.516 rows=75 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
2. 0.064 15.336 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=50.06..14,016.90 rows=9 width=1,655) (actual time=14.195..15.336 rows=38 loops=2)

3. 0.063 15.272 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=49.93..14,015.20 rows=9 width=1,655) (actual time=14.189..15.272 rows=38 loops=2)

4. 0.061 15.209 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=49.79..14,013.81 rows=9 width=611) (actual time=14.182..15.209 rows=38 loops=2)

5. 0.050 15.148 ↓ 4.2 38 2 / 2

Hash Left Join (cost=49.52..14,010.83 rows=9 width=597) (actual time=14.175..15.148 rows=38 loops=2)

  • Hash Cond: (si.currency_id = c.id)
6. 0.064 15.081 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=48.38..14,009.65 rows=9 width=601) (actual time=14.144..15.081 rows=38 loops=2)

7. 0.058 14.942 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=47.95..14,005.17 rows=9 width=601) (actual time=14.133..14.942 rows=38 loops=2)

8. 0.048 14.809 ↓ 4.2 38 2 / 2

Hash Left Join (cost=47.67..14,002.51 rows=9 width=591) (actual time=14.124..14.809 rows=38 loops=2)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.048 14.731 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=39.37..13,994.08 rows=9 width=581) (actual time=14.080..14.731 rows=38 loops=2)

10. 0.041 14.570 ↓ 4.2 38 2 / 2

Nested Loop Left Join (cost=38.95..13,989.64 rows=9 width=465) (actual time=14.066..14.570 rows=38 loops=2)

11. 0.072 14.041 ↓ 4.2 38 2 / 2

Hash Join (cost=38.52..13,985.36 rows=9 width=449) (actual time=13.665..14.041 rows=38 loops=2)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
12. 0.210 13.891 ↓ 4.2 38 2 / 2

Hash Join (cost=35.34..13,982.06 rows=9 width=439) (actual time=13.550..13.891 rows=38 loops=2)

  • Hash Cond: (si.originatordivision_id = od_db.id)
13. 0.933 13.670 ↓ 4.5 568 2 / 2

Nested Loop (cost=34.15..13,980.44 rows=127 width=427) (actual time=1.504..13.670 rows=568 loops=2)

14. 1.309 6.495 ↓ 4.5 568 2 / 2

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

15. 0.310 0.431 ↑ 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.140..0.431 rows=792 loops=2)

  • Recheck Cond: (creationdate = '2019-01-01'::date)
  • Heap Blocks: exact=35
16. 0.121 0.121 ↑ 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.242..0.242 rows=1,585 loops=1)

  • Index Cond: (creationdate = '2019-01-01'::date)
17. 4.755 4.755 ↑ 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.006..0.006 rows=1 loops=1,585)

  • Index Cond: (id = ps_eps.id)
18. 6.242 6.242 ↑ 1.0 1 1,135 / 2

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

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
19. 0.002 0.011 ↑ 1.0 1 2 / 2

Hash (cost=1.18..1.18 rows=1 width=28) (actual time=0.011..0.011 rows=1 loops=2)

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

Seq Scan on divisionbase od_db (cost=0.00..1.18 rows=1 width=28) (actual time=0.008..0.009 rows=1 loops=2)

  • Filter: (buyer_id = 67002626)
  • Rows Removed by Filter: 13
21. 0.009 0.078 ↑ 1.0 20 2 / 2

Hash (cost=2.93..2.93 rows=20 width=26) (actual time=0.078..0.078 rows=20 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
22. 0.018 0.069 ↑ 1.0 20 2 / 2

Merge Right Join (cost=2.05..2.93 rows=20 width=26) (actual time=0.049..0.069 rows=20 loops=2)

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
23. 0.013 0.013 ↑ 275.0 6 2 / 2

Index Scan using corporatebase_pkey on corporatebase ps_eps_t_bc_cb (cost=0.28..234.48 rows=1,650 width=26) (actual time=0.011..0.013 rows=6 loops=2)

24. 0.024 0.038 ↑ 1.0 20 2 / 2

Sort (cost=1.63..1.68 rows=20 width=16) (actual time=0.033..0.038 rows=20 loops=2)

  • Sort Key: ps_apfeps_t_apfda.bank_id
  • Sort Method: quicksort Memory: 25kB
  • Worker 0: Sort Method: quicksort Memory: 25kB
25. 0.014 0.014 ↑ 1.0 20 2 / 2

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.20 rows=20 width=16) (actual time=0.007..0.014 rows=20 loops=2)

26. 0.487 0.487 ↑ 1.0 1 75 / 2

Index Scan using financingcontextbase_pkey on financingcontextbase ps_apffc_fc_fcb (cost=0.42..0.47 rows=1 width=24) (actual time=0.013..0.013 rows=1 loops=75)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
27. 0.113 0.113 ↑ 1.0 1 75 / 2

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

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
29. 0.027 0.027 ↑ 1.0 1 2 / 2

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.026..0.027 rows=1 loops=2)

  • Index Cond: (id = 67002626)
30. 0.075 0.075 ↑ 1.0 1 75 / 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=75)

  • Index Cond: (id = si.supplier_id)
31. 0.075 0.075 ↑ 1.0 1 75 / 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=75)

  • Index Cond: (si.importbatch_id = id)
32. 0.005 0.017 ↑ 1.0 6 2 / 2

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

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

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

34. 0.000 0.000 ↓ 0.0 0 75 / 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=75)

  • Index Cond: (id = ps_eps.earlypaymentadvice_id)
35. 0.000 0.000 ↓ 0.0 0 75 / 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=75)

  • Index Cond: (si.paymentadvice_id = id)
36. 0.000 0.000 ↓ 0.0 0 75 / 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=75)

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

SubPlan (for Gather)

38. 0.075 0.075 ↑ 1.0 1 75

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

39. 0.000 0.000 ↓ 0.0 0 75

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

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.718 ms
Execution time : 21.806 ms