Query time 0.00126
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "15.11"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "11.00"
},
"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": 11,
"filtered": "91.67",
"cost_info": {
"read_cost": "0.82",
"eval_cost": "1.10",
"prefix_cost": "1.92",
"data_read_per_join": "880"
},
"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": "(`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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "1.10",
"prefix_cost": "3.02",
"data_read_per_join": "25K"
},
"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": 11,
"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": "1.10",
"prefix_cost": "4.12",
"data_read_per_join": "176"
},
"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 |
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> |
|
|
11 |
| 15 |
0 |
a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:2:{i:1;a:3:{s:8:"operator";s:3:"gte";s:9:"condition";s:8:"subtotal";s:5:"value";d:100;}i:2;a:3:{s:8:"operator";s:2:"eq";s:9:"condition";s:11:"coupon_code";s:5:"value";s:7:"sale-20";}}} |
a:1:{i:1;a:3:{s:5:"bonus";s:14:"order_discount";s:14:"discount_bonus";s:13:"by_percentage";s:14:"discount_value";s:2:"20";}} |
0 |
0 |
3 |
N |
N |
cart |
subtotal=100;coupon_code=sale-20 |
D |
5 |
|
N |
20% discount coupon |
<p>Get 20% off your order with the bonus code "sale-20"</p> |
|
|
|
|
| 18 |
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:2:"eq";s:9:"condition";s:11:"coupon_code";s:5:"value";s:8:"EMAIL-10";}}} |
a:1:{i:1;a:3:{s:5:"bonus";s:14:"order_discount";s:14:"discount_bonus";s:13:"by_percentage";s:14:"discount_value";s:2:"10";}} |
0 |
0 |
5 |
N |
N |
cart |
coupon_code=EMAIL-10 |
D |
0 |
|
N |
DEMO Store discount |
<p>10% off our entire range of products</p> |
|
|
|
|
| 19 |
0 |
a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:2:{i:1;a:3:{s:8:"operator";s:2:"eq";s:9:"condition";s:8:"shipping";s:5:"value";s:1:"6";}i:2;a:3:{s:8:"operator";s:3:"gte";s:9:"condition";s:8:"subtotal";s:5:"value";d:5;}}} |
a:1:{i:1;a:3:{s:5:"bonus";s:14:"order_discount";s:14:"discount_bonus";s:8:"by_fixed";s:14:"discount_value";s:1:"8";}} |
0 |
0 |
4 |
N |
N |
cart |
shipping=6;subtotal=5 |
D |
1 |
|
N |
Discount on pick-up |
<p>$8 off for collecting orders from our store</p> |
|
|
|
|
| 14 |
0 |
a:2:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";} |
a:1:{i:1;a:3:{s:5:"bonus";s:16:"product_discount";s:14:"discount_bonus";s:13:"to_percentage";s:14:"discount_value";s:2:"95";}} |
0 |
0 |
0 |
N |
N |
catalog |
|
D |
7 |
|
N |
DVD 5% off |
|
|
|
|
|
| 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 |
|
|
Aprovecha tu envío gratis agregando más productos |
Agrega %_AMOUNT_LEFT para tener envío gratis |
13 |
| 24 |
0 |
a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:2:{i:1;a:3:{s:8:"operator";s:3:"gte";s:9:"condition";s:8:"subtotal";s:5:"value";d:100;}i:2;a:3:{s:8:"operator";s:2:"eq";s:9:"condition";s:11:"coupon_code";s:5:"value";s:3:"123";}}} |
a:1:{i:1;a:2:{s:5:"bonus";s:13:"free_shipping";s:5:"value";s:1:"1";}} |
0 |
0 |
1 |
N |
N |
cart |
subtotal=100;coupon_code=123 |
D |
0 |
|
N |
Free shipping |
<p>We'll ship any order above $100 for free</p> |
|
|
|
|
| 23 |
0 |
a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:1:{i:5;a:3:{s:8:"operator";s:2:"in";s:9:"condition";s:8:"products";s:5:"value";a:1:{i:1267114885;a:2:{s:10:"product_id";s:3:"248";s:6:"amount";s:1:"1";}}}}} |
a:1:{i:3;a:4:{s:5:"bonus";s:20:"discount_on_products";s:5:"value";s:3:"248";s:14:"discount_bonus";s:13:"by_percentage";s:14:"discount_value";d:5;}} |
0 |
0 |
2 |
N |
N |
cart |
products=1267114885 |
D |
0 |
|
N |
X-Box discount |
<p>5% off the price of this gaming console</p> |
|
|
|
|