Query time 0.00061
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1.00"
},
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "const",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"promotion_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "80"
},
"used_columns": [
"promotion_id",
"company_id",
"conditions",
"bonuses",
"to_date",
"from_date",
"priority",
"stop",
"stop_other_rules",
"zone",
"conditions_hash",
"status",
"number_of_usages",
"users_conditions_hash",
"ath_show_in_cart_bar"
]
}
},
{
"table": {
"table_name": "d",
"access_type": "const",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"promotion_id",
"lang_code"
],
"key_length": "9",
"ref": [
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "2K"
},
"used_columns": [
"promotion_id",
"name",
"short_description",
"detailed_description",
"lang_code",
"ath_reward_text",
"ath_before_goal_text"
]
}
},
{
"table": {
"table_name": "images",
"access_type": "const",
"possible_keys": [
"promo"
],
"key": "promo",
"used_key_parts": [
"promotion_id",
"lang_code"
],
"key_length": "10",
"ref": [
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "16"
},
"used_columns": [
"promotion_image_id",
"promotion_id",
"lang_code"
]
}
}
]
}
}
Result
| promotion_id |
company_id |
conditions |
bonuses |
to_date |
from_date |
priority |
stop |
stop_other_rules |
zone |
conditions_hash |
status |
number_of_usages |
users_conditions_hash |
ath_show_in_cart_bar |
name |
short_description |
detailed_description |
lang_code |
ath_reward_text |
ath_before_goal_text |
promotion_image_id |
| 28 |
0 |
a:2:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";} |
a:0:{} |
1767236399 |
1763607600 |
1 |
N |
N |
cart |
|
A |
0 |
|
N |
$200 |
<p>$200 en tu primera compra</p> |
<p>$200 en tu primera compra</p> |
es |
|
|
11 |