Query time 0.00947
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.02047272,
"nested_loop": [
{
"read_sorted_file": {
"filesort": {
"sort_key": "cscart_settings_objects.position",
"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"],
"loops": 1,
"rows": 5,
"cost": 0.00988992,
"filtered": 100,
"attached_condition": "cscart_settings_objects.section_id <=> 50 and (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'"
}
}
}
},
{
"table": {
"table_name": "company_values",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "storefront_id", "company_id"],
"key": "PRIMARY",
"key_length": "11",
"used_key_parts": ["object_id", "company_id", "storefront_id"],
"ref": ["lvshop.cscart_settings_objects.object_id", "const", "const"],
"loops": 5,
"rows": 1,
"cost": 0.0052914,
"filtered": 100
}
},
{
"table": {
"table_name": "storefront_values",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "storefront_id", "company_id"],
"key": "PRIMARY",
"key_length": "11",
"used_key_parts": ["object_id", "company_id", "storefront_id"],
"ref": ["lvshop.cscart_settings_objects.object_id", "const", "const"],
"loops": 5,
"rows": 1,
"cost": 0.0052914,
"filtered": 100
}
}
]
}
}
Result
| object_id |
name |
section_id |
section_tab_id |
type |
position |
is_global |
description |
value |
| 5758 |
variations_allow_own_images |
50 |
51 |
C |
0 |
N |
variations_allow_own_images |
Y |
| 5759 |
variations_allow_own_features |
50 |
51 |
C |
10 |
N |
variations_allow_own_features |
N |
| 5760 |
variations_allow_auto_change_default_variation |
50 |
51 |
C |
20 |
N |
variations_allow_auto_change_default_variation |
Y |
| 5761 |
variations_show_all_possible_feature_variants |
50 |
51 |
C |
30 |
N |
variations_show_all_possible_feature_variants |
Y |
| 5762 |
quantity_discount_on_different_variations |
50 |
51 |
C |
40 |
N |
quantity_discount_on_different_variations |
N |