Query time 0.00035
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.24"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "1.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_promotions",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 7,
"rows_produced_per_join": 0,
"filtered": "14.29",
"cost_info": {
"read_cost": "2.44",
"eval_cost": "0.10",
"prefix_cost": "2.54",
"data_read_per_join": "71"
},
"used_columns": [
"promotion_id",
"company_id",
"conditions",
"bonuses",
"to_date",
"from_date",
"priority",
"stop",
"zone",
"conditions_hash",
"status",
"number_of_usages",
"users_conditions_hash"
],
"attached_condition": "((0 <> if(`maniamall_cscart`.`cscart_promotions`.`from_date`,(`maniamall_cscart`.`cscart_promotions`.`from_date` <= 1776632520),1)) and (0 <> if(`maniamall_cscart`.`cscart_promotions`.`to_date`,(`maniamall_cscart`.`cscart_promotions`.`to_date` >= 1776632520),1)) and (`maniamall_cscart`.`cscart_promotions`.`status` in ('A','H')) and (`maniamall_cscart`.`cscart_promotions`.`zone` = 'catalog'))"
}
},
{
"table": {
"table_name": "cscart_promotion_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"promotion_id",
"lang_code"
],
"key_length": "9",
"ref": [
"maniamall_cscart.cscart_promotions.promotion_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "2.89",
"data_read_per_join": "799"
},
"used_columns": [
"promotion_id",
"name",
"short_description",
"detailed_description",
"lang_code"
]
}
},
{
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"key_length": "159",
"ref": [
"maniamall_cscart.cscart_promotions.promotion_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "3.24",
"data_read_per_join": "159"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`maniamall_cscart`.`cscart_ult_objects_sharing`.`share_object_id` = `maniamall_cscart`.`cscart_promotions`.`promotion_id`)"
}
}
]
}
}
}
Result
| promotion_id |
company_id |
conditions |
bonuses |
to_date |
from_date |
priority |
stop |
zone |
conditions_hash |
status |
number_of_usages |
users_conditions_hash |
name |
detailed_description |
short_description |
| 35 |
1 |
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:"by_percentage";s:14:"discount_value";s:2:"45";}} |
0 |
0 |
0 |
N |
catalog |
|
A |
2 |
|
Reduceri Masive |
|
|