Query time 0.00132
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "120.38"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "26.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 26,
"rows_produced_per_join": 26,
"filtered": "100.00",
"index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'A') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (522515,876637,1447395,1447392,1447394,2092091,1662645)))",
"cost_info": {
"read_cost": "35.03",
"eval_cost": "2.60",
"prefix_cost": "37.63",
"data_read_per_join": "2K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "cscart_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "3",
"ref": [
"maniamall_cscart.cscart_images_links.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.88",
"eval_cost": "2.60",
"prefix_cost": "66.11",
"data_read_per_join": "19K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y"
],
"attached_condition": "<if>(is_not_null_compl(cscart_images), (`maniamall_cscart`.`cscart_images_links`.`image_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "cscart_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"maniamall_cscart.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.67",
"eval_cost": "2.60",
"prefix_cost": "94.38",
"data_read_per_join": "15K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`maniamall_cscart`.`cscart_common_descriptions`.`object_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
}
}
]
}
}
}
Result
| pair_id |
object_id |
object_type |
image_id |
detailed_id |
type |
position |
image_path |
alt |
image_x |
image_y |
images_image_id |
| 814651 |
522515 |
product |
0 |
814888 |
A |
0 |
|
|
|
|
|
| 814652 |
522515 |
product |
0 |
814889 |
A |
0 |
|
|
|
|
|
| 1355755 |
876637 |
product |
0 |
1355992 |
A |
0 |
|
|
|
|
|
| 1355756 |
876637 |
product |
0 |
1355993 |
A |
0 |
|
|
|
|
|
| 1355757 |
876637 |
product |
0 |
1355994 |
A |
0 |
|
|
|
|
|
| 1355758 |
876637 |
product |
0 |
1355995 |
A |
0 |
|
|
|
|
|
| 1355759 |
876637 |
product |
0 |
1355996 |
A |
0 |
|
|
|
|
|
| 2732915 |
1447392 |
product |
0 |
2733168 |
A |
0 |
|
|
|
|
|
| 2732916 |
1447392 |
product |
0 |
2733169 |
A |
0 |
|
|
|
|
|
| 2732917 |
1447392 |
product |
0 |
2733170 |
A |
0 |
|
|
|
|
|
| 2732918 |
1447392 |
product |
0 |
2733171 |
A |
0 |
|
|
|
|
|
| 2732919 |
1447392 |
product |
0 |
2733172 |
A |
0 |
|
|
|
|
|
| 2732920 |
1447392 |
product |
0 |
2733173 |
A |
0 |
|
|
|
|
|
| 2732928 |
1447394 |
product |
0 |
2733181 |
A |
0 |
|
|
|
|
|
| 2732929 |
1447394 |
product |
0 |
2733182 |
A |
0 |
|
|
|
|
|
| 2732930 |
1447394 |
product |
0 |
2733183 |
A |
0 |
|
|
|
|
|
| 2732931 |
1447394 |
product |
0 |
2733184 |
A |
0 |
|
|
|
|
|
| 2732932 |
1447394 |
product |
0 |
2733185 |
A |
0 |
|
|
|
|
|
| 2732934 |
1447395 |
product |
0 |
2733187 |
A |
0 |
|
|
|
|
|
| 2732935 |
1447395 |
product |
0 |
2733188 |
A |
0 |
|
|
|
|
|
| 2732936 |
1447395 |
product |
0 |
2733189 |
A |
0 |
|
|
|
|
|
| 2732937 |
1447395 |
product |
0 |
2733190 |
A |
0 |
|
|
|
|
|
| 5104266 |
2092091 |
product |
0 |
5104519 |
A |
0 |
|
|
|
|
|
| 5104267 |
2092091 |
product |
0 |
5104520 |
A |
0 |
|
|
|
|
|
| 5104268 |
2092091 |
product |
0 |
5104521 |
A |
0 |
|
|
|
|
|