Query time 0.01101
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "17.19"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "7.50"
},
"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.20",
"prefix_cost": "0.00",
"data_read_per_join": "16"
},
"used_columns": [
"storefront_id",
"promotion_id"
]
}
},
{
"table": {
"table_name": "jmj_promotions",
"access_type": "ALL",
"rows_examined_per_scan": 15,
"rows_produced_per_join": 7,
"filtered": "50.00",
"cost_info": {
"read_cost": "5.19",
"eval_cost": "1.50",
"prefix_cost": "6.69",
"data_read_per_join": "600"
},
"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"
],
"attached_condition": "(`jmj_test`.`jmj_promotions`.`zone` = 'catalog')"
}
},
{
"table": {
"table_name": "jmj_promotion_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"promotion_id",
"lang_code"
],
"key_length": "9",
"ref": [
"jmj_test.jmj_promotions.promotion_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "1.50",
"prefix_cost": "8.19",
"data_read_per_join": "5K"
},
"used_columns": [
"promotion_id",
"name",
"short_description",
"detailed_description",
"lang_code"
]
}
},
{
"table": {
"table_name": "jmj_ab__dotd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"promotion_id"
],
"key_length": "3",
"ref": [
"jmj_test.jmj_promotions.promotion_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "1.50",
"prefix_cost": "9.69",
"data_read_per_join": "360"
},
"used_columns": [
"promotion_id",
"filter",
"use_products_filter",
"hide_products_block",
"show_label_in_products_lists",
"use_schedule",
"ab__dotd_schedule",
"show_in_products_lists",
"show_counter_on_promotion_page",
"show_counter_on_product_page",
"group_by_category"
]
}
}
]
}
}
}
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 |
filter |
use_products_filter |
hide_products_block |
show_label_in_products_lists |
use_schedule |
ab__dotd_schedule |
show_in_products_lists |
show_counter_on_promotion_page |
show_counter_on_product_page |
group_by_category |
| 3 |
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:"in";s:9:"condition";s:8:"products";s:5:"value";s:39:"796,814,811,812,836,837,868,869,940,941";}}} |
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:"10";}} |
1838140199 |
1704047400 |
0 |
N |
N |
catalog |
products=796,814,811,812,836,837,868,869,940,941 |
A |
12 |
|
Up to 10% Off summer styles for men + additional 10% off when you join loyalty |
<p></p>
<p>Offer valid on select styles through 01/01/2024 or while supplies last. In-store products may vary and may differ from online. No adjustments on prior purchases. May not be redeemed for cash or cash equivalent and is not transferable. Valid in the India only.</p> |
<p></p>
<p>Offer valid on select styles through 01/01/2024 or while supplies last.</p>
<p></p> |
N |
Y |
N |
Y |
N |
a:7:{i:2020;a:12:{i:1;s:2:"[]";i:2;s:2:"[]";i:3;s:2:"[]";i:4;s:2:"[]";i:5;s:2:"[]";i:6;s:2:"[]";i:7;s:2:"[]";i:8;s:2:"[]";i:9;s:2:"[]";i:10;s:2:"[]";i:11;s:2:"[]";i:12;s:2:"[]";}i:2021;a:12:{i:1;s:2:"[]";i:2;s:2:"[]";i:3;s:2:"[]";i:4;s:2:"[]";i:5;s:2:"[]";i:6;s:2:"[]";i:7;s:2:"[]";i:8;s:2:"[]";i:9;s:2:"[]";i:10;s:2:"[]";i:11;s:2:"[]";i:12;s:2:"[]";}i:2022;a:12:{i:1;s:2:"[]";i:2;s:2:"[]";i:3;s:2:"[]";i:4;s:2:"[]";i:5;s:2:"[]";i:6;s:2:"[]";i:7;s:2:"[]";i:8;s:2:"[]";i:9;s:2:"[]";i:10;s:2:"[]";i:11;s:2:"[]";i:12;s:2:"[]";}i:2023;a:12:{i:1;s:2:"[]";i:2;s:2:"[]";i:3;s:2:"[]";i:4;s:2:"[]";i:5;s:2:"[]";i:6;s:2:"[]";i:7;s:2:"[]";i:8;s:2:"[]";i:9;s:2:"[]";i:10;s:2:"[]";i:11;s:2:"[]";i:12;s:2:"[]";}i:2024;a:12:{i:1;s:2:"[]";i:2;s:2:"[]";i:3;s:2:"[]";i:4;s:2:"[]";i:5;s:2:"[]";i:6;s:2:"[]";i:7;s:2:"[]";i:8;s:2:"[]";i:9;s:2:"[]";i:10;s:2:"[]";i:11;s:2:"[]";i:12;s:2:"[]";}i:2025;a:12:{i:1;s:2:"[]";i:2;s:2:"[]";i:3;s:2:"[]";i:4;s:2:"[]";i:5;s:2:"[]";i:6;s:2:"[]";i:7;s:2:"[]";i:8;s:2:"[]";i:9;s:2:"[]";i:10;s:2:"[]";i:11;s:2:"[]";i:12;s:2:"[]";}i:2026;a:12:{i:1;s:2:"[]";i:2;s:2:"[]";i:3;s:2:"[]";i:4;s:2:"[]";i:5;s:2:"[]";i:6;s:2:"[]";i:7;s:2:"[]";i:8;s:2:"[]";i:9;s:2:"[]";i:10;s:2:"[]";i:11;s:2:"[]";i:12;s:2:"[]";}} |
Y |
Y |
Y |
N |