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` <= 1731618000) or (`eshopuga_upgr_4122`.`cscart_ab__stickers`.`from_date` = 0)) and ((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`to_date` >= 1731618000) or (`eshopuga_upgr_4122`.`cscart_ab__stickers`.`to_date` = 0)) and ((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`sticker_id` = 0) 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"
]
}
}
]
}
}
}