Query time 0.00184
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "80.20"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "15.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": 15,
"rows_produced_per_join": 15,
"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 (40162,40150,21174,20833,20978,21367,19539,21181,19535,20814,19454,19447,19449,19549,20997)))",
"cost_info": {
"read_cost": "30.84",
"eval_cost": "1.50",
"prefix_cost": "32.34",
"data_read_per_join": "1K"
},
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.95",
"eval_cost": "1.50",
"prefix_cost": "48.79",
"data_read_per_join": "11K"
},
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.91",
"eval_cost": "1.50",
"prefix_cost": "65.20",
"data_read_per_join": "8K"
},
"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 |
| 1650178 |
19447 |
category |
0 |
1650416 |
M |
0 |
|
|
|
|
|
| 1650181 |
19449 |
category |
0 |
1650419 |
M |
0 |
|
|
|
|
|
| 1650190 |
19454 |
category |
0 |
1650428 |
M |
0 |
|
|
|
|
|
| 1650331 |
19535 |
category |
0 |
1650569 |
M |
0 |
|
|
|
|
|
| 1650348 |
19539 |
category |
0 |
1650586 |
M |
0 |
|
|
|
|
|
| 1650368 |
19549 |
category |
0 |
1650606 |
M |
0 |
|
|
|
|
|
| 1653391 |
20814 |
category |
0 |
1653629 |
M |
0 |
|
|
|
|
|
| 1653459 |
20833 |
category |
0 |
1653697 |
M |
0 |
|
|
|
|
|
| 1653821 |
20978 |
category |
0 |
1654059 |
M |
0 |
|
|
|
|
|
| 1653880 |
20997 |
category |
0 |
1654118 |
M |
0 |
|
|
|
|
|
| 1655531 |
21174 |
category |
0 |
1655769 |
M |
0 |
|
|
|
|
|
| 1655575 |
21181 |
category |
0 |
1655813 |
M |
0 |
|
|
|
|
|
| 1656946 |
21367 |
category |
0 |
1657184 |
M |
0 |
|
|
|
|
|
| 3720723 |
40150 |
category |
0 |
3720976 |
M |
0 |
|
|
|
|
|
| 3720735 |
40162 |
category |
0 |
3720988 |
M |
0 |
|
|
|
|
|