Query time 0.00437
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_settings_objects.position",
"temporary_table": {
"table": {
"table_name": "cscart_settings_objects",
"access_type": "ref",
"possible_keys": ["section_id"],
"key": "section_id",
"key_length": "4",
"used_key_parts": ["section_id"],
"ref": ["const"],
"rows": 3,
"filtered": 100,
"attached_condition": "(find_in_set('STOREFRONT',cscart_settings_objects.edition_type) or find_in_set('VENDOR',cscart_settings_objects.edition_type) or find_in_set('ROOT',cscart_settings_objects.edition_type) or find_in_set('ULT:STOREFRONT',cscart_settings_objects.edition_type) or find_in_set('ULT:VENDOR',cscart_settings_objects.edition_type) or find_in_set('ULT:ROOT',cscart_settings_objects.edition_type)) and cscart_settings_objects.`type` <> 'H'"
},
"block-nl-join": {
"table": {
"table_name": "company_values",
"access_type": "range",
"possible_keys": ["PRIMARY", "storefront_id", "company_id"],
"key": "storefront_id",
"key_length": "4",
"used_key_parts": ["storefront_id"],
"rowid_filter": {
"range": {
"key": "company_id",
"used_key_parts": ["company_id"]
},
"rows": 1,
"selectivity_pct": 1.666666667
},
"rows": 1,
"filtered": 1.666666627,
"attached_condition": "company_values.company_id = 1 and company_values.storefront_id = 1"
},
"buffer_type": "flat",
"buffer_size": "5Kb",
"join_type": "BNL",
"attached_condition": "trigcond(1) and trigcond(company_values.object_id = cscart_settings_objects.object_id and company_values.company_id = 1 and company_values.storefront_id = 1)"
},
"table": {
"table_name": "storefront_values",
"access_type": "ref",
"possible_keys": ["PRIMARY", "storefront_id", "company_id"],
"key": "storefront_id",
"key_length": "4",
"used_key_parts": ["storefront_id"],
"ref": ["const"],
"rows": 1,
"filtered": 1.666666627,
"attached_condition": "trigcond(storefront_values.object_id = cscart_settings_objects.object_id and storefront_values.company_id = 0)"
}
}
}
}
}
Result
object_id |
name |
section_id |
section_tab_id |
type |
position |
is_global |
description |
value |
105 |
show_cats |
8 |
0 |
C |
10 |
N |
show_cats |
Y |
106 |
show_rootcats_only |
8 |
0 |
C |
20 |
N |
show_rootcats_only |
N |
107 |
show_site_info |
8 |
0 |
C |
35 |
N |
show_site_info |
Y |