Query time 0.00074
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.23"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "1.10"
},
"nested_loop": [
{
"table": {
"table_name": "storefronts_promotions",
"access_type": "system",
"rows_examined_per_scan": 0,
"rows_produced_per_join": 1,
"filtered": "0.00",
"const_row_not_found": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "16"
},
"used_columns": [
"storefront_id",
"promotion_id"
]
}
},
{
"table": {
"table_name": "ushop_promotions",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 12,
"rows_produced_per_join": 1,
"filtered": "9.17",
"cost_info": {
"read_cost": "1.81",
"eval_cost": "0.11",
"prefix_cost": "1.92",
"data_read_per_join": "88"
},
"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"
],
"attached_condition": "((0 <> if(`marketplace`.`ushop_promotions`.`from_date`,(`marketplace`.`ushop_promotions`.`from_date` <= 1771276470),1)) and (0 <> if(`marketplace`.`ushop_promotions`.`to_date`,(`marketplace`.`ushop_promotions`.`to_date` >= 1771276470),1)) and (`marketplace`.`ushop_promotions`.`status` = 'A') and (`marketplace`.`ushop_promotions`.`promotion_id` not in (25,26,27,30)))"
}
},
{
"table": {
"table_name": "ushop_promotion_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"promotion_id",
"lang_code"
],
"key_length": "9",
"ref": [
"marketplace.ushop_promotions.promotion_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.11",
"prefix_cost": "2.03",
"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": "ushop_promotion_images",
"access_type": "eq_ref",
"possible_keys": [
"promo"
],
"key": "promo",
"used_key_parts": [
"promotion_id",
"lang_code"
],
"key_length": "10",
"ref": [
"marketplace.ushop_promotions.promotion_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"index_condition": "<if>(is_not_null_compl(ushop_promotion_images), (`marketplace`.`ushop_promotion_images`.`promotion_id` = `marketplace`.`ushop_promotions`.`promotion_id`), true)",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.11",
"prefix_cost": "2.14",
"data_read_per_join": "17"
},
"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 |
detailed_description |
short_description |
promotion_image_id |
ath_reward_text |
ath_before_goal_text |
| 29 |
0 |
a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:1:{i:1;a:3:{s:8:"operator";s:3:"gte";s:9:"condition";s:8:"subtotal";s:5:"value";d:10;}}} |
a:1:{i:1;a:2:{s:5:"bonus";s:13:"free_shipping";s:5:"value";s:1:"6";}} |
2014858799 |
1763694000 |
2 |
N |
N |
cart |
subtotal=10 |
A |
84 |
|
Y |
Envío gratis |
|
|
13 |
Aprovecha tu envío gratis agregando más productos |
Agrega %_AMOUNT_LEFT para tener envío gratis |