Query time 0.00197
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "124.88"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "24.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": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'category') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (34391,41289,1569,1337,1334,1169,1231,1117,1321,1297,1021,1022,1149,5109,1328,13058,30005,37603,13060,1019,30002,12963,28750,7382)))",
"cost_info": {
"read_cost": "47.36",
"eval_cost": "2.40",
"prefix_cost": "49.76",
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.49",
"eval_cost": "2.40",
"prefix_cost": "75.65",
"data_read_per_join": "18K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "22.83",
"eval_cost": "2.40",
"prefix_cost": "100.88",
"data_read_per_join": "14K"
},
"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 |
| 25054 |
1569 |
category |
0 |
25291 |
M |
0 |
|
|
|
|
|
| 167155 |
1297 |
category |
0 |
167392 |
M |
0 |
|
|
|
|
|
| 167238 |
1021 |
category |
0 |
167475 |
M |
0 |
|
|
|
|
|
| 167243 |
1022 |
category |
0 |
167480 |
M |
0 |
|
|
|
|
|
| 167244 |
1149 |
category |
0 |
167481 |
M |
0 |
|
|
|
|
|
| 167245 |
1019 |
category |
0 |
167482 |
M |
0 |
|
|
|
|
|
| 167247 |
1321 |
category |
0 |
167484 |
M |
0 |
|
|
|
|
|
| 171740 |
1117 |
category |
0 |
171977 |
M |
0 |
|
|
|
|
|
| 179201 |
1337 |
category |
0 |
179438 |
M |
0 |
|
|
|
|
|
| 179202 |
1328 |
category |
0 |
179439 |
M |
0 |
|
|
|
|
|
| 179203 |
1231 |
category |
0 |
179440 |
M |
0 |
|
|
|
|
|
| 179204 |
1169 |
category |
0 |
179441 |
M |
0 |
|
|
|
|
|
| 179205 |
1334 |
category |
0 |
179442 |
M |
0 |
|
|
|
|
|
| 323205 |
5109 |
category |
0 |
323442 |
M |
0 |
|
|
|
|
|
| 885110 |
7382 |
category |
0 |
885347 |
M |
0 |
|
|
|
|
|
| 1285218 |
12963 |
category |
0 |
1285455 |
M |
0 |
|
|
|
|
|
| 1293106 |
13058 |
category |
0 |
1293343 |
M |
0 |
|
|
|
|
|
| 1293137 |
13060 |
category |
0 |
1293374 |
M |
0 |
|
|
|
|
|
| 2067464 |
30002 |
category |
0 |
2067716 |
M |
0 |
|
|
|
|
|
| 2067505 |
30005 |
category |
0 |
2067757 |
M |
0 |
|
|
|
|
|
| 3263766 |
34391 |
category |
0 |
3264019 |
M |
0 |
|
|
|
|
|
| 3647710 |
37603 |
category |
0 |
3647963 |
M |
0 |
|
|
|
|
|
| 3833100 |
41289 |
category |
0 |
3833353 |
M |
0 |
|
|
|
|
|