Query time 0.00106
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "48.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "9.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": 9,
"rows_produced_per_join": 9,
"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 (24625,24627,26167,24628,24633,24630,24636,26169,26170)))",
"cost_info": {
"read_cost": "18.80",
"eval_cost": "0.90",
"prefix_cost": "19.70",
"data_read_per_join": "864"
},
"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.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.98",
"eval_cost": "0.90",
"prefix_cost": "29.57",
"data_read_per_join": "6K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y"
],
"attached_condition": "<if>(is_not_null_compl(cscart_images), (`maniamall_cscart`.`cscart_images_links`.`detailed_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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.94",
"eval_cost": "0.90",
"prefix_cost": "39.42",
"data_read_per_join": "5K"
},
"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 |
| 1722162 |
24625 |
category |
0 |
1722401 |
M |
0 |
prezoane-ssangyong-actyon-cj-12.jpg |
|
400 |
290 |
1722401 |
| 1722165 |
24627 |
category |
0 |
1722404 |
M |
0 |
prezoane-ssangyong-actyon-sports-qj-2007.jpg |
|
400 |
290 |
1722404 |
| 1722167 |
24628 |
category |
0 |
1722406 |
M |
0 |
prezoane-ssangyong-kyron-dj-2006.jpg |
|
400 |
290 |
1722406 |
| 1722171 |
24630 |
category |
0 |
1722410 |
M |
0 |
prezoane-ssangyong-rexton-i-rj-2002.jpg |
|
400 |
290 |
1722410 |
| 1722175 |
24633 |
category |
0 |
1722414 |
M |
0 |
prezoane-ssangyong-rexton-i-modello-tod-rj-2005.jpg |
|
400 |
290 |
1722414 |
| 1722179 |
24636 |
category |
0 |
1722418 |
M |
0 |
prezoane-ssangyong-rexton-ii-rj-07.jpg |
|
400 |
290 |
1722418 |
| 1725094 |
26167 |
category |
0 |
1725333 |
M |
0 |
prezoane-ssangyong-korando-ck-01.jpg |
|
400 |
290 |
1725333 |
| 1725097 |
26169 |
category |
0 |
1725336 |
M |
0 |
prezoane-ssangyong-rodius-aj-2005.jpg |
|
400 |
290 |
1725336 |
| 1725099 |
26170 |
category |
0 |
1725338 |
M |
0 |
prezoane-ssangyong-stavic-aj-2005.jpg |
|
400 |
290 |
1725338 |