Query time 0.00068
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "48.18"
},
"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` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (1029075,1051341,1051407,1033064,1032919,1051411,1032924,1032955,1032956)))",
"cost_info": {
"read_cost": "18.65",
"eval_cost": "0.90",
"prefix_cost": "19.55",
"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.96",
"eval_cost": "0.90",
"prefix_cost": "29.41",
"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.87",
"eval_cost": "0.90",
"prefix_cost": "39.18",
"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 |
| 1584542 |
1029075 |
product |
0 |
1584779 |
M |
0 |
saboti-ambreiaj-husqvarna-136-137-141-142-230-235-240-36-41-----mto-da0020-.jpg |
|
500 |
500 |
1584779 |
| 1590162 |
1032919 |
product |
0 |
1590399 |
M |
0 |
piston-complet-husqvarna-141-142-40mm-----mto-da0175-.jpg |
|
360 |
360 |
1590399 |
| 1590167 |
1032924 |
product |
0 |
1590404 |
M |
0 |
piston-complet-st-ms-270-44mm---mto-da01905-.jpg |
|
500 |
500 |
1590404 |
| 1590198 |
1032955 |
product |
0 |
1590435 |
M |
0 |
pompa-ulei---mto-dc0027-.jpg |
|
458 |
352 |
1590435 |
| 1590199 |
1032956 |
product |
0 |
1590436 |
M |
0 |
pompa-ulei---2500--3800---dmdr---mto-dm0009-.jpg |
|
507 |
484 |
1590436 |
| 1590307 |
1033064 |
product |
0 |
1590544 |
M |
0 |
rulmenti-ambielaj---dc---mto-dc0016-.jpg |
|
639 |
330 |
1590544 |
| 1615836 |
1051341 |
product |
0 |
1616073 |
M |
0 |
amortizor-husqvarna-5155-----mto-da0031-.jpg |
|
480 |
360 |
1616073 |
| 1615901 |
1051407 |
product |
0 |
1616138 |
M |
0 |
filtru-aer-stihl-ms-170-180-017-018-----mto-da0140-.jpg |
|
800 |
800 |
1616138 |
| 1615905 |
1051411 |
product |
0 |
1616142 |
M |
0 |
filtru-benzina-stihl---83mm-----mto-da0134-.jpg |
|
800 |
800 |
1616142 |