Query time 0.00079
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1.99"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_settings_objects",
"access_type": "ref",
"possible_keys": [
"section_id"
],
"key": "section_id",
"used_key_parts": [
"section_id"
],
"key_length": "4",
"ref": [
"const"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 2,
"filtered": "90.00",
"cost_info": {
"read_cost": "0.75",
"eval_cost": "0.27",
"prefix_cost": "1.05",
"data_read_per_join": "2K"
},
"used_columns": [
"object_id",
"edition_type",
"name",
"section_id",
"section_tab_id",
"type",
"value",
"position",
"is_global"
],
"attached_condition": "(((0 <> find_in_set('STOREFRONT',`s2cart`.`cscart_settings_objects`.`edition_type`)) or (0 <> find_in_set('ROOT',`s2cart`.`cscart_settings_objects`.`edition_type`)) or (0 <> find_in_set('MVE:STOREFRONT',`s2cart`.`cscart_settings_objects`.`edition_type`)) or (0 <> find_in_set('MVE:ROOT',`s2cart`.`cscart_settings_objects`.`edition_type`))) and (`s2cart`.`cscart_settings_objects`.`type` <> 'H'))"
}
},
{
"table": {
"table_name": "storefront_values",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"storefront_id",
"company_id"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"company_id",
"storefront_id"
],
"key_length": "11",
"ref": [
"s2cart.cscart_settings_objects.object_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.67",
"eval_cost": "0.27",
"prefix_cost": "1.99",
"data_read_per_join": "64"
},
"used_columns": [
"object_id",
"company_id",
"value",
"storefront_id"
]
}
}
]
}
}
}
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 |
Y |
107 |
show_site_info |
8 |
0 |
C |
35 |
N |
show_site_info |
Y |