Query time 0.00211
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "15.63"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "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": 7,
"rows_produced_per_join": 6,
"filtered": "90.00",
"cost_info": {
"read_cost": "4.90",
"eval_cost": "0.63",
"prefix_cost": "5.60",
"data_read_per_join": "4K"
},
"used_columns": [
"object_id",
"edition_type",
"name",
"section_id",
"section_tab_id",
"type",
"value",
"position",
"is_global"
],
"attached_condition": "(((0 <> find_in_set('STOREFRONT',`goimagine`.`settings_objects`.`edition_type`)) or (0 <> find_in_set('VENDOR',`goimagine`.`settings_objects`.`edition_type`)) or (0 <> find_in_set('ROOT',`goimagine`.`settings_objects`.`edition_type`)) or (0 <> find_in_set('MVE:STOREFRONT',`goimagine`.`settings_objects`.`edition_type`)) or (0 <> find_in_set('MVE:VENDOR',`goimagine`.`settings_objects`.`edition_type`)) or (0 <> find_in_set('MVE:ROOT',`goimagine`.`settings_objects`.`edition_type`))) and (`goimagine`.`settings_objects`.`type` <> 'H'))"
}
},
{
"table": {
"table_name": "company_values",
"access_type": "index_merge",
"possible_keys": [
"PRIMARY",
"storefront_id",
"company_id"
],
"key": "intersect(storefront_id,company_id)",
"key_length": "4,4",
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "100.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "3.15",
"eval_cost": "0.63",
"prefix_cost": "9.38",
"data_read_per_join": "151"
},
"used_columns": [
"object_id",
"company_id",
"value",
"storefront_id"
],
"attached_condition": "(<if>(found_match(company_values), true, true) and <if>(is_not_null_compl(company_values), ((`goimagine`.`company_values`.`storefront_id` = 1) and (`goimagine`.`company_values`.`company_id` = 9654) and (`goimagine`.`company_values`.`object_id` = `goimagine`.`settings_objects`.`object_id`)), true))"
}
},
{
"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": [
"goimagine.settings_objects.object_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.62",
"eval_cost": "0.63",
"prefix_cost": "15.63",
"data_read_per_join": "151"
},
"used_columns": [
"object_id",
"company_id",
"value",
"storefront_id"
]
}
}
]
}
}
}
Result
| object_id |
name |
section_id |
section_tab_id |
type |
position |
is_global |
description |
value |
| 5798 |
seo_product_type |
65 |
66 |
S |
0 |
N |
seo_product_type |
product_file_nohtml |
| 5799 |
seo_category_type |
65 |
66 |
S |
10 |
N |
seo_category_type |
category_nohtml |
| 5800 |
seo_page_type |
65 |
66 |
S |
20 |
N |
seo_page_type |
page_nohtml |
| 5801 |
seo_other_type |
65 |
66 |
S |
30 |
N |
seo_other_type |
directory |
| 5802 |
seo_language |
65 |
66 |
C |
40 |
N |
seo_language |
N |
| 5803 |
single_url |
65 |
66 |
C |
50 |
N |
single_url |
Y |
| 5804 |
non_latin_symbols |
65 |
66 |
C |
60 |
N |
non_latin_symbols |
N |