explain.depesz.com

PostgreSQL's explain analyze made readable

Result: zFc

Settings
# exclusive inclusive rows x rows loops node
1. 3.501 41.398 ↑ 1.1 1,271 1

Nested Loop Left Join (cost=1,498.45..92,137.29 rows=1,417 width=1,810) (actual time=11.073..41.398 rows=1,271 loops=1)

2. 6.080 36.626 ↑ 1.1 1,271 1

Gather (cost=1,498.18..80,142.37 rows=1,417 width=1,641) (actual time=11.051..36.626 rows=1,271 loops=1)

  • Workers Planned: 3
  • Workers Launched: 3
3. 0.317 30.546 ↑ 1.4 318 4 / 4

Hash Left Join (cost=498.18..79,000.67 rows=457 width=1,641) (actual time=4.650..30.546 rows=318 loops=4)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
4. 0.302 30.226 ↑ 1.4 318 4 / 4

Hash Left Join (cost=487.95..78,988.72 rows=457 width=1,641) (actual time=4.633..30.226 rows=318 loops=4)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
5. 0.316 29.920 ↑ 1.4 318 4 / 4

Hash Left Join (cost=477.73..78,977.30 rows=457 width=597) (actual time=4.618..29.920 rows=318 loops=4)

  • Hash Cond: (si.currency_id = c.id)
6. 0.346 29.588 ↑ 1.4 318 4 / 4

Nested Loop Left Join (cost=476.59..78,974.12 rows=457 width=601) (actual time=4.587..29.588 rows=318 loops=4)

7. 0.311 25.429 ↑ 1.4 318 4 / 4

Hash Left Join (cost=476.16..75,787.73 rows=457 width=601) (actual time=4.061..25.429 rows=318 loops=4)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 0.314 25.095 ↑ 1.4 318 4 / 4

Hash Left Join (cost=467.85..75,773.14 rows=457 width=591) (actual time=4.024..25.095 rows=318 loops=4)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.313 23.161 ↑ 1.4 318 4 / 4

Hash Left Join (cost=256.73..75,560.81 rows=457 width=581) (actual time=2.392..23.161 rows=318 loops=4)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 0.506 22.826 ↑ 1.4 318 4 / 4

Nested Loop Left Join (cost=255.41..75,557.93 rows=457 width=569) (actual time=2.356..22.826 rows=318 loops=4)

11. 0.597 21.684 ↑ 1.4 318 4 / 4

Nested Loop Left Join (cost=254.99..75,332.24 rows=457 width=453) (actual time=2.345..21.684 rows=318 loops=4)

12. 0.373 20.134 ↑ 1.4 318 4 / 4

Hash Left Join (cost=254.57..75,115.26 rows=457 width=437) (actual time=2.333..20.134 rows=318 loops=4)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
13. 0.452 19.672 ↑ 1.4 318 4 / 4

Nested Loop (cost=251.39..75,105.80 rows=457 width=427) (actual time=2.182..19.672 rows=318 loops=4)

14. 2.128 16.042 ↑ 11.0 318 4 / 4

Nested Loop (cost=250.96..73,535.68 rows=3,504 width=411) (actual time=2.169..16.042 rows=318 loops=4)

15. 2.621 3.895 ↑ 1.3 3,340 4 / 4

Parallel Bitmap Heap Scan on supplierinvoice si (cost=250.53..42,721.90 rows=4,248 width=207) (actual time=1.667..3.895 rows=3,340 loops=4)

  • Recheck Cond: (supplier_id = 6167)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 12
  • Heap Blocks: exact=290
16. 1.274 1.274 ↓ 1.0 13,406 1 / 4

Bitmap Index Scan on supplierinvoice_supplier_idx (cost=0.00..247.24 rows=13,174 width=0) (actual time=5.095..5.095 rows=13,406 loops=1)

  • Index Cond: (supplier_id = 6167)
17. 10.019 10.019 ↓ 0.0 0 13,359 / 4

Index Scan using earlypaymentsettlement_invoice_idx on earlypaymentsettlement ps_eps (cost=0.43..7.25 rows=1 width=220) (actual time=0.003..0.003 rows=0 loops=13,359)

  • Index Cond: (invoice_id = si.id)
  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 1
18. 3.178 3.178 ↑ 1.0 1 1,271 / 4

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement ps_apfeps (cost=0.42..0.45 rows=1 width=24) (actual time=0.010..0.010 rows=1 loops=1,271)

  • Index Cond: (id = ps_eps.id)
19. 0.012 0.089 ↑ 1.0 20 4 / 4

Hash (cost=2.93..2.93 rows=20 width=26) (actual time=0.088..0.089 rows=20 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
20. 0.017 0.077 ↑ 1.0 20 4 / 4

Merge Right Join (cost=2.05..2.93 rows=20 width=26) (actual time=0.056..0.077 rows=20 loops=4)

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
21. 0.017 0.017 ↑ 275.0 6 4 / 4

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.014..0.017 rows=6 loops=4)

22. 0.029 0.043 ↑ 1.0 20 4 / 4

Sort (cost=1.63..1.68 rows=20 width=16) (actual time=0.037..0.043 rows=20 loops=4)

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

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

24. 0.953 0.953 ↑ 1.0 1 1,271 / 4

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

  • Index Cond: (id = ps_apfeps.financingcontext_id)
25. 0.636 0.636 ↑ 1.0 1 1,271 / 4

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=1,271)

  • Index Cond: (ps_apffc_fc_fcb.id = id)
26. 0.009 0.022 ↑ 1.0 14 4 / 4

Hash (cost=1.14..1.14 rows=14 width=28) (actual time=0.022..0.022 rows=14 loops=4)

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

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

28. 0.667 1.620 ↑ 1.0 1,650 4 / 4

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.620..1.620 rows=1,650 loops=4)

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
29. 0.953 0.953 ↑ 1.0 1,650 4 / 4

Seq Scan on corporatebase od_c_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.004..0.953 rows=1,650 loops=4)

30. 0.002 0.023 ↑ 1.0 1 4 / 4

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.023..0.023 rows=1 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
31. 0.021 0.021 ↑ 1.0 1 4 / 4

Index Scan using corporatebase_pkey on corporatebase s_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.020..0.021 rows=1 loops=4)

  • Index Cond: (id = 6167)
32. 3.813 3.813 ↑ 1.0 1 1,271 / 4

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..6.97 rows=1 width=16) (actual time=0.012..0.012 rows=1 loops=1,271)

  • Index Cond: (si.importbatch_id = id)
33. 0.006 0.016 ↑ 1.0 6 4 / 4

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.016..0.016 rows=6 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
34. 0.010 0.010 ↑ 1.0 6 4 / 4

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

35. 0.001 0.004 ↓ 0.0 0 4 / 4

Hash (cost=10.10..10.10 rows=10 width=1,052) (actual time=0.003..0.004 rows=0 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
36. 0.003 0.003 ↓ 0.0 0 4 / 4

Seq Scan on invoicepaymentadvice ipa (cost=0.00..10.10 rows=10 width=1,052) (actual time=0.003..0.003 rows=0 loops=4)

37. 0.000 0.003 ↓ 0.0 0 4 / 4

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.003..0.003 rows=0 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
38. 0.003 0.003 ↓ 0.0 0 4 / 4

Seq Scan on bankpaymenttransaction bpt (cost=0.00..10.10 rows=10 width=16) (actual time=0.002..0.003 rows=0 loops=4)

39. 0.000 0.000 ↓ 0.0 0 1,271

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

  • Index Cond: (id = ps_eps.earlypaymentadvice_id)
40.          

SubPlan (for Nested Loop Left Join)

41. 1.271 1.271 ↑ 1.0 1 1,271

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

42. 0.000 0.000 ↓ 0.0 0 1,271

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=1,271)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.119 ms
Execution time : 42.230 ms