Query time 0.00067
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2.74"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_profile_fields",
"access_type": "ref",
"possible_keys": [
"field_name",
"profile_show"
],
"key": "profile_show",
"used_key_parts": [
"profile_show"
],
"key_length": "4",
"ref": [
"const"
],
"rows_examined_per_scan": 16,
"rows_produced_per_join": 0,
"filtered": "2.50",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.04",
"prefix_cost": "2.60",
"data_read_per_join": "419"
},
"used_columns": [
"field_id",
"field_name",
"profile_show",
"profile_required",
"checkout_show",
"checkout_required",
"partner_show",
"partner_required",
"storefront_show",
"field_type",
"profile_type",
"position",
"is_default",
"section",
"matching_id",
"class",
"wrapper_class",
"autocomplete_type"
],
"attached_condition": "((`betaatif_store`.`cscart_profile_fields`.`profile_type` = 'S') and (`betaatif_store`.`cscart_profile_fields`.`field_name` <> 'company_description') and (`betaatif_store`.`cscart_profile_fields`.`storefront_show` = 'Y'))"
}
},
{
"table": {
"table_name": "cscart_profile_field_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"object_type",
"lang_code"
],
"key_length": "12",
"ref": [
"betaatif_store.cscart_profile_fields.field_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.10",
"eval_cost": "0.04",
"prefix_cost": "2.74",
"data_read_per_join": "313"
},
"used_columns": [
"object_id",
"description",
"object_type",
"lang_code"
]
}
}
]
}
}
}
Result
field_id |
field_name |
profile_show |
profile_required |
checkout_show |
checkout_required |
partner_show |
partner_required |
storefront_show |
field_type |
profile_type |
position |
is_default |
section |
matching_id |
class |
wrapper_class |
autocomplete_type |
description |
required |
36 |
company |
Y |
Y |
N |
N |
N |
N |
Y |
I |
S |
10 |
Y |
C |
0 |
company |
|
organization |
Company |
Y |
50 |
plan_id |
Y |
N |
N |
N |
N |
N |
Y |
V |
S |
15 |
Y |
C |
0 |
plan-id |
|
|
Plan |
N |
39 |
email |
Y |
Y |
N |
N |
N |
N |
Y |
E |
S |
40 |
Y |
C |
0 |
email |
|
email |
E-mail |
Y |