Query time 0.00212
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.02325504,
"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": 6,
"cost": 0.01088336,
"filtered": 100,
"attached_condition": "cscart_settings_objects.section_id <=> 46 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": 6,
"rows": 1,
"cost": 0.00618584,
"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": 6,
"rows": 1,
"cost": 0.00618584,
"filtered": 100
}
}
]
}
}
Result
| object_id |
name |
section_id |
section_tab_id |
type |
position |
is_global |
description |
value |
| 5750 |
min_amount |
46 |
47 |
I |
0 |
N |
min_amount |
50 |
| 5751 |
max_amount |
46 |
47 |
I |
10 |
N |
max_amount |
1500 |
| 5752 |
code_prefix |
46 |
47 |
I |
20 |
N |
code_prefix |
GC |
| 5753 |
cert_per_page |
46 |
47 |
I |
30 |
N |
cert_per_page |
10 |
| 5754 |
free_products_allow |
46 |
47 |
C |
40 |
N |
free_products_allow |
Y |
| 5755 |
redeem_shipping_cost |
46 |
47 |
C |
50 |
N |
redeem_shipping_cost |
Y |