Query time 0.00055
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.52"
},
"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": 9,
"rows_produced_per_join": 8,
"filtered": "90.00",
"index_condition": "(`danishecarter_21_apr`.`cscart_settings_objects`.`section_id` <=> 72)",
"cost_info": {
"read_cost": "9.00",
"eval_cost": "1.62",
"prefix_cost": "10.80",
"data_read_per_join": "6K"
},
"used_columns": [
"object_id",
"edition_type",
"name",
"section_id",
"section_tab_id",
"type",
"value",
"position",
"is_global"
],
"attached_condition": "((find_in_set('STOREFRONT',`danishecarter_21_apr`.`cscart_settings_objects`.`edition_type`) or find_in_set('ROOT',`danishecarter_21_apr`.`cscart_settings_objects`.`edition_type`) or find_in_set('MVE:STOREFRONT',`danishecarter_21_apr`.`cscart_settings_objects`.`edition_type`) or find_in_set('MVE:ROOT',`danishecarter_21_apr`.`cscart_settings_objects`.`edition_type`)) and (`danishecarter_21_apr`.`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": [
"danishecarter_21_apr.cscart_settings_objects.object_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.10",
"eval_cost": "1.62",
"prefix_cost": "20.52",
"data_read_per_join": "194"
},
"used_columns": [
"object_id",
"company_id",
"storefront_id",
"value"
]
}
}
]
}
}
}
Result
object_id |
name |
section_id |
section_tab_id |
type |
position |
is_global |
description |
value |
5821 |
point_rate |
72 |
73 |
I |
0 |
N |
point_rate |
1 |
5822 |
auto_price_in_points |
72 |
73 |
C |
10 |
N |
auto_price_in_points |
Y |
5823 |
price_in_points_with_discounts |
72 |
73 |
C |
20 |
N |
price_in_points_with_discounts |
Y |
5824 |
points_with_discounts |
72 |
73 |
C |
30 |
N |
points_with_discounts |
Y |
5825 |
price_in_points_order_discount |
72 |
73 |
C |
40 |
N |
price_in_points_order_discount |
Y |
5826 |
reward_points_order_discount |
72 |
73 |
C |
50 |
N |
reward_points_order_discount |
Y |
5827 |
higher_level_extract |
72 |
73 |
C |
60 |
N |
higher_level_extract |
Y |
5828 |
several_points_action |
72 |
73 |
S |
70 |
N |
several_points_action |
minimal_absolute |
5829 |
consider_zero_values |
72 |
73 |
C |
80 |
N |
consider_zero_values |
N |
5830 |
log_per_page |
72 |
73 |
I |
90 |
N |
log_per_page |
10 |