Query time 0.00045
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.073611871,
"filesort": {
"sort_key": "cscart_promotions.stop_other_rules desc, cscart_promotions.priority",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_promotions",
"access_type": "ALL",
"loops": 1,
"rows": 7,
"cost": 0.011130435,
"filtered": 100,
"attached_condition": "if(cscart_promotions.from_date,cscart_promotions.from_date <= 1743802033,1) and if(cscart_promotions.to_date,cscart_promotions.to_date >= 1743802033,1) and cscart_promotions.`status` in ('A','H') and cscart_promotions.zone = 'catalog' and (cscart_promotions.company_id in (1,39) or cscart_promotions.company_id = 0)"
}
},
{
"table": {
"table_name": "cscart_promotion_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["promotion_id", "lang_code"],
"ref": ["cscart.cscart_promotions.promotion_id", "const"],
"loops": 7,
"rows": 1,
"cost": 0.012307982,
"filtered": 100,
"attached_condition": "trigcond(cscart_promotion_descriptions.lang_code = 'de')"
}
},
{
"block-nl-join": {
"table": {
"table_name": "storefronts_promotions",
"access_type": "index",
"key": "PRIMARY",
"key_length": "8",
"used_key_parts": ["storefront_id", "promotion_id"],
"loops": 7,
"rows": 2,
"cost": 0.041240774,
"filtered": 100,
"using_index": true
},
"buffer_type": "flat",
"buffer_size": "17Kb",
"join_type": "BNL",
"attached_condition": "trigcond(storefronts_promotions.storefront_id = 1 or storefronts_promotions.storefront_id is null) and trigcond(storefronts_promotions.promotion_id = cscart_promotions.promotion_id)"
}
}
]
}
}
}
}
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 |
name |
detailed_description |
short_description |
7 |
0 |
a:3:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";s:10:"conditions";a:1:{i:2;a:3:{s:8:"operator";s:2:"in";s:9:"condition";s:8:"products";s:5:"value";s:23:"115,116,117,118,119,120";}}} |
a:1:{i:1;a:3:{s:5:"bonus";s:16:"product_discount";s:14:"discount_bonus";s:13:"by_percentage";s:14:"discount_value";s:1:"5";}} |
1744667999 |
1743289200 |
10 |
N |
N |
catalog |
products=115,116,117,118,119,120 |
A |
0 |
|
Tages-Angebot |
|
|