explain.depesz.com

PostgreSQL's explain analyze made readable

Result: b869

Settings
# exclusive inclusive rows x rows loops node
1. 0.036 0.372 ↑ 1.0 1 1

Nested Loop Left Join (cost=2.81..36.49 rows=1 width=732) (actual time=0.357..0.372 rows=1 loops=1)

  • Join Filter: (ltf.deliverypointid = deliverypoint.deliverypointid)
2. 0.002 0.229 ↑ 1.0 1 1

Nested Loop Left Join (cost=2.39..20.53 rows=1 width=718) (actual time=0.216..0.229 rows=1 loops=1)

  • Join Filter: (en.deliverypointid = deliverypoint.deliverypointid)
3. 0.003 0.212 ↑ 1.0 1 1

Nested Loop Left Join (cost=1.97..17.76 rows=1 width=704) (actual time=0.201..0.212 rows=1 loops=1)

  • Join Filter: (generalconfig.deliverypointid = deliverypoint.deliverypointid)
4. 0.006 0.192 ↑ 1.0 1 1

Nested Loop Left Join (cost=1.55..14.89 rows=1 width=704) (actual time=0.182..0.192 rows=1 loops=1)

  • Join Filter: ((deliverypoint.regulator)::text = (regulator.regulator)::text)
5. 0.006 0.183 ↑ 1.0 1 1

Nested Loop Left Join (cost=1.55..13.87 rows=1 width=608) (actual time=0.175..0.183 rows=1 loops=1)

  • Join Filter: (((deliverypoint.gridoperator)::text = (gridoperatormarket.gridoperator)::text) AND ((deliverypoint.market)::text = (gridoperatormarket.market)::text))
  • Rows Removed by Join Filter: 1
6. 0.008 0.174 ↑ 1.0 1 1

Nested Loop (cost=1.55..12.82 rows=1 width=544) (actual time=0.168..0.174 rows=1 loops=1)

  • Join Filter: ((deliverypoint.gridoperator)::text = (gridoperator.gridoperator)::text)
  • Rows Removed by Join Filter: 1
7. 0.003 0.161 ↑ 1.0 1 1

Nested Loop Left Join (cost=1.55..11.77 rows=1 width=384) (actual time=0.157..0.161 rows=1 loops=1)

8. 0.018 0.018 ↑ 1.0 1 1

Index Scan using deliverypoint_pkey on deliverypoint (cost=0.42..2.44 rows=1 width=144) (actual time=0.017..0.018 rows=1 loops=1)

  • Index Cond: (deliverypointid = 15,798)
  • Filter: (deleted IS FALSE)
9. 0.005 0.140 ↑ 1.0 1 1

Nested Loop Left Join (cost=1.13..9.33 rows=1 width=240) (actual time=0.137..0.140 rows=1 loops=1)

10. 0.003 0.095 ↑ 1.0 1 1

Nested Loop (cost=0.84..9.00 rows=1 width=217) (actual time=0.093..0.095 rows=1 loops=1)

11. 0.023 0.079 ↑ 1.0 1 1

Index Scan using freeadddetail_addressid_idx on freeaddressesdetail (cost=0.42..7.22 rows=1 width=175) (actual time=0.078..0.079 rows=1 loops=1)

  • Index Cond: (deliverypoint.addressid = addressid)
  • Filter: ((((addressid)::text || ';'::text) || (addressdetailnbr)::text) = (SubPlan 5))
12.          

SubPlan (for Index Scan)

13. 0.000 0.056 ↑ 1.0 1 1

Limit (cost=4.76..4.76 rows=1 width=38) (actual time=0.056..0.056 rows=1 loops=1)

14.          

Initplan (for Limit)

15. 0.029 0.029 ↑ 1.0 1 1

Index Scan using property_pkey on property (cost=0.27..2.29 rows=1 width=7) (actual time=0.028..0.029 rows=1 loops=1)

  • Index Cond: ((propertycode)::text = 'defaultCustomerLanguageCode'::text)
16. 0.010 0.055 ↑ 1.0 1 1

Sort (cost=2.47..2.47 rows=1 width=38) (actual time=0.055..0.055 rows=1 loops=1)

  • Sort Key: (CASE WHEN ((freeaddressesdetail_1.language)::text = ($6)::text) THEN 1 WHEN ((freeaddressesdetail_1.language)::text = 'NL'::text) THEN 2 WHEN ((freeaddressesdetail_1.language)::text = 'FR'::text) THEN 3 ELSE NULL::integer END)
  • Sort Method: quicksort Memory: 25kB
17. 0.045 0.045 ↑ 1.0 1 1

Index Scan using freeadddetail_addressid_idx on freeaddressesdetail freeaddressesdetail_1 (cost=0.42..2.46 rows=1 width=38) (actual time=0.044..0.045 rows=1 loops=1)

  • Index Cond: (addressid = freeaddressesdetail.addressid)
18. 0.013 0.013 ↑ 1.0 1 1

Index Scan using freeaddresses_pkey on freeaddresses (cost=0.42..1.77 rows=1 width=17) (actual time=0.012..0.013 rows=1 loops=1)

  • Index Cond: (addressid = freeaddressesdetail.addressid)
19. 0.040 0.040 ↑ 1.0 1 1

Index Scan using town_pkey on town t (cost=0.29..0.32 rows=1 width=32) (actual time=0.039..0.040 rows=1 loops=1)

  • Index Cond: (((country)::text = (freeaddresses.country)::text) AND ((postalcode)::text = (freeaddresses.postalcode)::text) AND (towncode = freeaddresses.towncode))
  • Filter: ((postalcode)::text <> 'UNKNOWN'::text)
20. 0.005 0.005 ↑ 1.0 2 1

Seq Scan on gridoperator (cost=0.00..1.02 rows=2 width=160) (actual time=0.003..0.005 rows=2 loops=1)

21. 0.003 0.003 ↑ 1.0 2 1

Seq Scan on gridoperatormarket (cost=0.00..1.02 rows=2 width=64) (actual time=0.002..0.003 rows=2 loops=1)

22. 0.003 0.003 ↑ 1.0 1 1

Seq Scan on regulator (cost=0.00..1.01 rows=1 width=96) (actual time=0.002..0.003 rows=1 loops=1)

23. 0.017 0.017 ↑ 1.0 1 1

Index Scan using "IX_generalconfig_deliverypointid_generalconfig" on generalconfig (cost=0.42..2.85 rows=1 width=4) (actual time=0.016..0.017 rows=1 loops=1)

  • Index Cond: (deliverypointid = 15,798)
  • Filter: ((deleted IS FALSE) AND (todate IS NULL) AND ((sourceid)::text = 'DGO'::text))
  • Rows Removed by Filter: 1
24. 0.015 0.015 ↑ 1.0 1 1

Index Scan using deliverypointaddinfo_deliverpointid_idx on deliverypointaddinfo en (cost=0.42..2.76 rows=1 width=18) (actual time=0.013..0.015 rows=1 loops=1)

  • Index Cond: (deliverypointid = 15,798)
  • Filter: ((code)::text = 'EMERGENCY_NUMBER'::text)
  • Rows Removed by Filter: 1
25. 0.007 0.007 ↑ 1.0 1 1

Index Scan using deliverypointaddinfo_deliverpointid_idx on deliverypointaddinfo ltf (cost=0.42..2.76 rows=1 width=18) (actual time=0.006..0.007 rows=1 loops=1)

  • Index Cond: (deliverypointid = 15,798)
  • Filter: ((code)::text = 'LOW_TIMEFRAME_LABEL'::text)
  • Rows Removed by Filter: 1
26.          

SubPlan (for Nested Loop Left Join)

27. 0.003 0.024 ↑ 1.0 1 1

Nested Loop (cost=0.58..4.63 rows=1 width=0) (actual time=0.024..0.024 rows=1 loops=1)

28. 0.011 0.011 ↑ 1.0 1 1

Index Scan using "IX_deliveryperiod_deliverypointid_deliveryperiod" on deliveryperiod (cost=0.29..2.31 rows=1 width=4) (actual time=0.011..0.011 rows=1 loops=1)

  • Index Cond: (deliverypointid = deliverypoint.deliverypointid)
  • Filter: (deleted IS FALSE)
29. 0.010 0.010 ↑ 1.0 1 1

Index Scan using contractdelivery_deliveryperiodid_idx on contractdelivery cdp (cost=0.29..2.31 rows=1 width=4) (actual time=0.010..0.010 rows=1 loops=1)

  • Index Cond: (deliveryperiodid = deliveryperiod.deliveryperiodid)
  • Filter: (todate IS NULL)
30. 0.000 0.000 ↓ 0.0 0

Merge Join (cost=0.62..7,518.97 rows=72,948 width=4) (never executed)

  • Merge Cond: (cdp_1.deliveryperiodid = deliveryperiod_1.deliveryperiodid)
31. 0.000 0.000 ↓ 0.0 0

Index Scan using contractdelivery_deliveryperiodid_idx on contractdelivery cdp_1 (cost=0.29..2,939.56 rows=72,955 width=4) (never executed)

  • Filter: (todate IS NULL)
32. 0.000 0.000 ↓ 0.0 0

Index Scan using deliveryperiod_pkey on deliveryperiod deliveryperiod_1 (cost=0.29..3,409.45 rows=103,267 width=8) (never executed)

  • Filter: (deleted IS FALSE)
33. 0.001 0.076 ↑ 1.0 1 1

Limit (cost=8.54..8.55 rows=1 width=22) (actual time=0.076..0.076 rows=1 loops=1)

34. 0.011 0.075 ↑ 2.0 1 1

Sort (cost=8.54..8.55 rows=2 width=22) (actual time=0.075..0.075 rows=1 loops=1)

  • Sort Key: physicalconfig.todate, physicalconfig.fromdate
  • Sort Method: quicksort Memory: 25kB
35. 0.003 0.064 ↑ 1.0 2 1

Nested Loop (cost=1.26..8.53 rows=2 width=22) (actual time=0.041..0.064 rows=2 loops=1)

36. 0.007 0.041 ↑ 1.0 2 1

Nested Loop (cost=0.84..7.60 rows=2 width=30) (actual time=0.028..0.041 rows=2 loops=1)

37. 0.016 0.016 ↑ 1.0 2 1

Index Scan using "IX_physicalconfig_deliverypointid_physicalconfig" on physicalconfig (cost=0.42..2.70 rows=2 width=12) (actual time=0.013..0.016 rows=2 loops=1)

  • Index Cond: (deliverypointid = deliverypoint.deliverypointid)
  • Filter: (deleted IS FALSE)
38. 0.018 0.018 ↑ 1.0 1 2

Index Scan using meter_physicalconfigid_idx on meter m (cost=0.42..2.44 rows=1 width=18) (actual time=0.009..0.009 rows=1 loops=2)

  • Index Cond: (physicalconfigid = physicalconfig.physicalconfigid)
39. 0.020 0.020 ↑ 1.0 1 2

Index Scan using physicalconfig_pk on physicalconfig physicalconfig_1 (cost=0.42..0.46 rows=1 width=4) (actual time=0.009..0.010 rows=1 loops=2)

  • Index Cond: (physicalconfigid = m.physicalconfigid)
  • Filter: (deleted IS FALSE)
Planning time : 16.259 ms
Execution time : 1.103 ms