Query time 0.00080
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.68"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_ab__stickers",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"c_status"
],
"key": "c_status",
"used_key_parts": [
"status"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 6,
"rows_produced_per_join": 0,
"filtered": "3.33",
"index_condition": "((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`status` <=> 'A') and ((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`usergroup_ids` = '') or find_in_set(0,`eshopuga_upgr_4122`.`cscart_ab__stickers`.`usergroup_ids`) or find_in_set(1,`eshopuga_upgr_4122`.`cscart_ab__stickers`.`usergroup_ids`)))",
"cost_info": {
"read_cost": "3.00",
"eval_cost": "0.04",
"prefix_cost": "4.20",
"data_read_per_join": "513"
},
"used_columns": [
"sticker_id",
"storefront_ids",
"usergroup_ids",
"position",
"status",
"name_for_admin",
"type",
"style",
"display_on_lists",
"display_on_detailed_pages",
"output_position_list",
"output_position_detailed_page",
"appearance",
"conditions",
"from_date",
"to_date",
"last_update_time"
],
"attached_condition": "(find_in_set(1,`eshopuga_upgr_4122`.`cscart_ab__stickers`.`storefront_ids`) and ((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`from_date` <= 1731531600) or (`eshopuga_upgr_4122`.`cscart_ab__stickers`.`from_date` = 0)) and ((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`to_date` >= 1731531600) or (`eshopuga_upgr_4122`.`cscart_ab__stickers`.`to_date` = 0)) and ((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`sticker_id` = 4) or (`eshopuga_upgr_4122`.`cscart_ab__stickers`.`type` = 'D')) and (`eshopuga_upgr_4122`.`cscart_ab__stickers`.`display_on_detailed_pages` <> 'not_display'))"
}
},
{
"table": {
"table_name": "descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"sticker_id",
"lang_code"
],
"key_length": "9",
"ref": [
"eshopuga_upgr_4122.cscart_ab__stickers.sticker_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.20",
"eval_cost": "0.04",
"prefix_cost": "4.44",
"data_read_per_join": "312"
},
"used_columns": [
"sticker_id",
"lang_code",
"name_for_desktop",
"name_for_mobile",
"description"
]
}
},
{
"table": {
"table_name": "images",
"access_type": "eq_ref",
"possible_keys": [
"sticker"
],
"key": "sticker",
"used_key_parts": [
"sticker_id",
"lang_code"
],
"key_length": "9",
"ref": [
"eshopuga_upgr_4122.cscart_ab__stickers.sticker_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.20",
"eval_cost": "0.04",
"prefix_cost": "4.68",
"data_read_per_join": "3"
},
"used_columns": [
"image_id",
"sticker_id",
"lang_code"
]
}
}
]
}
}
}
Result
sticker_id |
storefront_ids |
usergroup_ids |
position |
status |
name_for_admin |
type |
style |
display_on_lists |
display_on_detailed_pages |
output_position_list |
output_position_detailed_page |
appearance |
conditions |
from_date |
to_date |
last_update_time |
lang_code |
name_for_desktop |
name_for_mobile |
description |
image_id |
4 |
1 |
0 |
0 |
A |
Bestseller |
C |
G |
a:7:{s:28:"blocks/products/products.tpl";s:9:"full_size";s:40:"blocks/products/products_links_thumb.tpl";s:10:"small_size";s:41:"blocks/products/products_multicolumns.tpl";s:9:"full_size";s:37:"blocks/products/products_scroller.tpl";s:10:"small_size";s:40:"blocks/products/products_small_items.tpl";s:10:"small_size";s:30:"blocks/products/short_list.tpl";s:11:"not_display";s:46:"blocks/products/products_scroller_advanced.tpl";s:9:"full_size";} |
full_size |
T |
T |
a:9:{s:10:"text_color";s:7:"#FFFFFF";s:10:"sticker_bg";s:7:"#000000";s:12:"border_width";s:1:"0";s:12:"border_color";s:7:"#000000";s:14:"uppercase_text";s:1:"N";s:20:"full_size_image_size";s:2:"48";s:21:"small_size_image_size";s:2:"32";s:4:"list";a:1:{s:10:"user_class";s:0:"";}s:13:"detailed_page";a:1:{s:10:"user_class";s: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:9:"condition";s:12:"sales_amount";s:8:"operator";s:2:"gt";s:5:"value";s:1:"2";}}} |
0 |
0 |
0 |
es |
|
|
|
68 |