Query time 0.00111
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "66.12"
},
"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": 29,
"rows_produced_per_join": 26,
"filtered": "90.00",
"index_condition": "(`webmarco`.`cscart_settings_objects`.`section_id` <=> 386)",
"cost_info": {
"read_cost": "29.00",
"eval_cost": "5.22",
"prefix_cost": "34.80",
"data_read_per_join": "20K"
},
"used_columns": [
"object_id",
"edition_type",
"name",
"section_id",
"section_tab_id",
"type",
"value",
"position",
"is_global"
],
"attached_condition": "((find_in_set('STOREFRONT',`webmarco`.`cscart_settings_objects`.`edition_type`) or find_in_set('ROOT',`webmarco`.`cscart_settings_objects`.`edition_type`) or find_in_set('MVE:STOREFRONT',`webmarco`.`cscart_settings_objects`.`edition_type`) or find_in_set('MVE:ROOT',`webmarco`.`cscart_settings_objects`.`edition_type`)) and (`webmarco`.`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": [
"webmarco.cscart_settings_objects.object_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.10",
"eval_cost": "5.22",
"prefix_cost": "66.12",
"data_read_per_join": "626"
},
"used_columns": [
"object_id",
"company_id",
"value",
"storefront_id"
]
}
}
]
}
}
}
Result
object_id |
name |
section_id |
section_tab_id |
type |
position |
is_global |
description |
value |
6986 |
lkey |
386 |
387 |
I |
10 |
N |
lkey |
AFF-G14H-7842-C2V3-BOKP |
7006 |
out_line_color |
386 |
388 |
I |
10 |
N |
out_line_color |
#DEDEDE |
7011 |
use_multiple_promotions |
386 |
389 |
C |
10 |
N |
use_multiple_promotions |
Y |
6987 |
payment_period |
386 |
387 |
S |
20 |
N |
payment_period |
1m |
7007 |
title_text_color |
386 |
388 |
I |
20 |
N |
title_text_color |
#0088CC |
7012 |
use_affiliate_id |
386 |
389 |
C |
20 |
N |
use_affiliate_id |
Y |
6988 |
affiliates_usergroup |
386 |
387 |
S |
30 |
N |
affiliates_usergroup |
12 |
7008 |
text_color |
386 |
388 |
I |
30 |
N |
text_color |
#333333 |
7013 |
coupon_prefix_delim |
386 |
389 |
I |
30 |
N |
coupon_prefix_delim |
- |
6989 |
auto_assign_affiliates_usergroup |
386 |
387 |
C |
40 |
N |
auto_assign_affiliates_usergroup |
Y |
7009 |
text_background_color |
386 |
388 |
I |
40 |
N |
text_background_color |
#FFFFFF |
6990 |
number_last_periods |
386 |
387 |
I |
50 |
N |
number_last_periods |
10 |
6991 |
time_uniq_banner |
386 |
387 |
I |
60 |
N |
time_uniq_banner |
10 |
6992 |
allow_all_customers_be_affiliates |
386 |
387 |
C |
70 |
N |
allow_all_customers_be_affiliates |
N |
6993 |
no_rewards_registered_users |
386 |
387 |
C |
80 |
N |
no_rewards_registered_users |
N |
6994 |
show_only_non_zero_cost_actions |
386 |
387 |
C |
90 |
N |
show_only_non_zero_cost_actions |
N |
6995 |
automatic_approval_commissions |
386 |
387 |
C |
100 |
N |
automatic_approval_commissions |
N |
6996 |
automatic_approval_affiliates |
386 |
387 |
C |
110 |
N |
automatic_approval_affiliates |
Y |
6997 |
plan_auto_set |
386 |
387 |
C |
120 |
N |
plan_auto_set |
Y |
6998 |
successful_order_statuses |
386 |
387 |
N |
130 |
N |
successful_order_statuses |
#M#P=Y&C=Y |
6999 |
custom_affiliate_parameter |
386 |
387 |
I |
140 |
N |
custom_affiliate_parameter |
|
7000 |
notify_admin_about_new_affiliate |
386 |
387 |
C |
150 |
N |
notify_admin_about_new_affiliate |
Y |
7001 |
show_vendor_to_affiliate |
386 |
387 |
C |
160 |
N |
show_vendor_to_affiliate |
Y |
7002 |
show_only_approved_comissions |
386 |
387 |
C |
170 |
N |
show_only_approved_comissions |
N |
7003 |
show_attracted_users_ip |
386 |
387 |
C |
180 |
N |
show_attracted_users_ip |
Y |
7004 |
aff_banner_multilang |
386 |
387 |
C |
190 |
N |
aff_banner_multilang |
Y |