explain.depesz.com

PostgreSQL's explain analyze made readable

Result: fT8W

Settings
# exclusive inclusive rows x rows loops node
1. 2.688 10.203 ↑ 1.0 100 1

Limit (cost=1,245.20..3,242.11 rows=100 width=1,826) (actual time=4.147..10.203 rows=100 loops=1)

2. 0.313 7.515 ↑ 168.6 100 1

Nested Loop Left Join (cost=1,245.20..337,983.37 rows=16,863 width=1,826) (actual time=4.145..7.515 rows=100 loops=1)

3. 0.142 7.102 ↑ 168.6 100 1

Nested Loop Left Join (cost=1,244.93..195,235.99 rows=16,863 width=1,625) (actual time=4.127..7.102 rows=100 loops=1)

  • Join Filter: (si.currency_id = c.id)
4. 0.000 6.960 ↑ 168.6 100 1

Nested Loop Left Join (cost=1,244.93..193,897.88 rows=16,863 width=1,629) (actual time=4.117..6.960 rows=100 loops=1)

5. 6.451 9.275 ↑ 168.6 100 1

Gather (cost=1,244.65..188,921.62 rows=16,863 width=1,619) (actual time=4.108..9.275 rows=100 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
6. 0.040 2.824 ↑ 206.6 34 3 / 3

Hash Left Join (cost=244.65..186,235.32 rows=7,026 width=1,619) (actual time=1.994..2.824 rows=34 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
7. 0.042 2.780 ↑ 206.6 34 3 / 3

Hash Left Join (cost=234.43..186,198.73 rows=7,026 width=1,619) (actual time=1.978..2.780 rows=34 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
8. 0.063 2.731 ↑ 206.6 34 3 / 3

Nested Loop Left Join (cost=224.20..186,170.07 rows=7,026 width=575) (actual time=1.957..2.731 rows=34 loops=3)

9. 0.043 2.600 ↑ 206.6 34 3 / 3

Hash Left Join (cost=223.77..182,674.47 rows=7,026 width=575) (actual time=1.943..2.600 rows=34 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
10. 0.043 0.831 ↑ 206.6 34 3 / 3

Hash Left Join (cost=12.64..182,444.86 rows=7,026 width=565) (actual time=0.203..0.831 rows=34 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
11. 0.046 0.765 ↑ 206.6 34 3 / 3

Hash Left Join (cost=11.33..182,419.51 rows=7,026 width=553) (actual time=0.167..0.765 rows=34 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
12. 0.053 0.699 ↑ 206.6 34 3 / 3

Nested Loop Left Join (cost=3.02..182,314.60 rows=7,026 width=543) (actual time=0.133..0.699 rows=34 loops=3)

13. 0.044 0.578 ↑ 206.6 34 3 / 3

Nested Loop Left Join (cost=2.60..178,844.77 rows=7,026 width=427) (actual time=0.120..0.578 rows=34 loops=3)

14. 0.048 0.466 ↑ 206.6 34 3 / 3

Nested Loop (cost=2.18..175,716.69 rows=7,026 width=427) (actual time=0.104..0.466 rows=34 loops=3)

15. 0.054 0.316 ↑ 206.7 34 3 / 3

Nested Loop (cost=1.75..158,486.94 rows=7,029 width=236) (actual time=0.090..0.316 rows=34 loops=3)

16. 0.102 0.160 ↑ 2,546.9 34 3 / 3

Hash Join (cost=1.31..9,862.02 rows=86,595 width=24) (actual time=0.072..0.160 rows=34 loops=3)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
17. 0.039 0.039 ↑ 2,456.6 141 3 / 3

Parallel Seq Scan on apfearlypaymentsettlement ps_apfeps (cost=0.00..8,758.79 rows=346,379 width=24) (actual time=0.004..0.039 rows=141 loops=3)

18. 0.006 0.019 ↑ 1.0 5 3 / 3

Hash (cost=1.25..1.25 rows=5 width=16) (actual time=0.019..0.019 rows=5 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
19. 0.013 0.013 ↑ 1.0 5 3 / 3

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.25 rows=5 width=16) (actual time=0.010..0.013 rows=5 loops=3)

  • Filter: (bank_id = 3053)
  • Rows Removed by Filter: 15
20. 0.102 0.102 ↑ 1.0 1 102 / 3

Index Scan using earlypaymentsettlement_pkey on earlypaymentsettlement ps_eps (cost=0.43..1.72 rows=1 width=220) (actual time=0.003..0.003 rows=1 loops=102)

  • Index Cond: (id = ps_apfeps.id)
  • Filter: (creationdate >= '2019-02-01'::date)
21. 0.102 0.102 ↑ 1.0 1 102 / 3

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..2.45 rows=1 width=207) (actual time=0.003..0.003 rows=1 loops=102)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
22. 0.068 0.068 ↑ 1.0 1 102 / 3

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

  • Index Cond: (id = ps_apfeps.financingcontext_id)
  • Heap Fetches: 0
23. 0.068 0.068 ↑ 1.0 1 102 / 3

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

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
25. 0.017 0.017 ↑ 1.0 1 3 / 3

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

  • Index Cond: (id = 3053)
26. 0.009 0.023 ↑ 1.0 14 3 / 3

Hash (cost=1.14..1.14 rows=14 width=28) (actual time=0.023..0.023 rows=14 loops=3)

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

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

28. 0.644 1.726 ↑ 1.0 1,650 3 / 3

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

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

Seq Scan on corporatebase od_c_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.003..1.082 rows=1,650 loops=3)

30. 0.068 0.068 ↑ 1.0 1 102 / 3

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

  • Index Cond: (si.importbatch_id = id)
31. 0.000 0.007 ↓ 0.0 0 3 / 3

Hash (cost=10.10..10.10 rows=10 width=1,052) (actual time=0.007..0.007 rows=0 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
32. 0.007 0.007 ↓ 0.0 0 3 / 3

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

33. 0.001 0.004 ↓ 0.0 0 3 / 3

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.004..0.004 rows=0 loops=3)

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

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

35. 0.200 0.200 ↑ 1.0 1 100

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

  • Index Cond: (id = si.supplier_id)
36. 0.000 0.000 ↑ 6.0 1 100

Materialize (cost=0.00..1.09 rows=6 width=12) (actual time=0.000..0.000 rows=1 loops=100)

37. 0.004 0.004 ↑ 6.0 1 1

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=12) (actual time=0.004..0.004 rows=1 loops=1)

38. 0.000 0.000 ↓ 0.0 0 100

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

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

SubPlan (for Nested Loop Left Join)

40. 0.100 0.100 ↑ 1.0 1 100

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

41. 0.000 0.000 ↓ 0.0 0 100

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

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 28.033 ms
Execution time : 10.562 ms