explain.depesz.com

PostgreSQL's explain analyze made readable

Result: XbFz

Settings
# exclusive inclusive rows x rows loops node
1. 6.720 12.304 ↓ 5.0 75 1

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

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

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

3. 0.063 5.445 ↓ 4.2 38 2 / 2

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

4. 0.062 5.382 ↓ 4.2 38 2 / 2

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

5. 0.046 5.320 ↓ 4.2 38 2 / 2

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

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

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

7. 0.051 5.123 ↓ 4.2 38 2 / 2

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

8. 0.045 4.997 ↓ 4.2 38 2 / 2

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

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

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

10. 0.063 4.793 ↓ 4.2 38 2 / 2

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

11. 0.082 4.655 ↓ 4.2 38 2 / 2

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

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

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

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

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

14. 0.583 2.574 ↓ 4.5 568 2 / 2

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

15. 0.291 0.406 ↑ 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.134..0.406 rows=792 loops=2)

  • Recheck Cond: (creationdate = '2019-01-01'::date)
  • Heap Blocks: exact=47
16. 0.116 0.116 ↑ 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.231..0.231 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. 1.135 1.135 ↑ 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.002..0.002 rows=1 loops=1,135)

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

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
20. 0.008 0.008 ↑ 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.008 rows=1 loops=2)

  • Filter: (buyer_id = 67,002,626)
  • Rows Removed by Filter: 13
21. 0.010 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: 1,024 Batches: 1 Memory Usage: 10kB
22. 0.017 0.068 ↑ 1.0 20 2 / 2

Merge Right Join (cost=2.05..2.93 rows=20 width=26) (actual time=0.050..0.068 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.010..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.034..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.075 0.075 ↑ 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.002..0.002 rows=1 loops=75)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
27. 0.075 0.075 ↑ 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.002..0.002 rows=1 loops=75)

  • Index Cond: (ps_apffc_fc_fcb.id = id)
28. 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: 1,024 Batches: 1 Memory Usage: 9kB
29. 0.014 0.014 ↑ 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.013..0.014 rows=1 loops=2)

  • Index Cond: (id = 67,002,626)
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.004 0.013 ↑ 1.0 6 2 / 2

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
33. 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.007..0.009 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.725 ms
Execution time : 12.590 ms