Query time 0.00117
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "275.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "54.00"
},
"nested_loop": [
{
"table": {
"table_name": "q_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": 54,
"rows_produced_per_join": 54,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'M') and (`portal`.`q_images_links`.`object_id` in ('30403','30404','30405','30406','30407','30408','30659','30660','30661','30662','30663','30664','30665','30666','30667','30668')))",
"cost_info": {
"read_cost": "80.81",
"eval_cost": "10.80",
"prefix_cost": "91.61",
"data_read_per_join": "5K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "q_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"portal.q_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 54,
"filtered": "100.00",
"cost_info": {
"read_cost": "54.00",
"eval_cost": "10.80",
"prefix_cost": "156.41",
"data_read_per_join": "41K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "q_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"portal.q_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 54,
"filtered": "100.00",
"cost_info": {
"read_cost": "54.00",
"eval_cost": "10.80",
"prefix_cost": "221.21",
"data_read_per_join": "32K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_images`.`image_id`), true)"
}
}
]
}
}
}
Result
image_id |
image_path |
image_x |
image_y |
is_high_res |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
0 |
51ZJq7iDXwL.jpg |
440 |
500 |
N |
48418 |
30665 |
product |
50379 |
M |
0 |
|
50379 |
0 |
41LYoxLiXmL.jpg |
500 |
437 |
N |
48419 |
30664 |
product |
50380 |
M |
0 |
|
50380 |
0 |
41HKy1j7_1L.jpg |
492 |
500 |
N |
48420 |
30663 |
product |
50381 |
M |
0 |
|
50381 |
0 |
41B87UmOWKL.jpg |
478 |
500 |
N |
48422 |
30662 |
product |
50383 |
M |
0 |
|
50383 |
0 |
41TO0WUIJ1L.jpg |
497 |
500 |
N |
48423 |
30661 |
product |
50384 |
M |
0 |
|
50384 |
0 |
71d_MWcIn0L._SL1000_.jpg |
1000 |
1000 |
N |
48424 |
30660 |
product |
50385 |
M |
0 |
|
50385 |
0 |
41_oyKpUMFL._SX466_.jpg |
466 |
486 |
N |
48425 |
30659 |
product |
50386 |
M |
0 |
|
50386 |
0 |
41bIikAEv7L.jpg |
500 |
500 |
N |
49147 |
30404 |
product |
51108 |
M |
0 |
|
51108 |
0 |
31nJkFRYF2L.jpg |
500 |
500 |
N |
49149 |
30403 |
product |
51110 |
M |
0 |
|
51110 |
0 |
41PuLSbKZEL.jpg |
500 |
481 |
N |
49274 |
30668 |
product |
51235 |
M |
0 |
|
51235 |
0 |
313EzG9qSTL.jpg |
446 |
500 |
N |
49275 |
30667 |
product |
51236 |
M |
0 |
|
51236 |
0 |
51VisXgYXcL.jpg |
500 |
500 |
N |
49277 |
30666 |
product |
51238 |
M |
0 |
|
51238 |
0 |
41eTJkkULnL.jpg |
500 |
389 |
N |
49315 |
30408 |
product |
51276 |
M |
0 |
|
51276 |
0 |
41OMn1iYf3L.jpg |
500 |
500 |
N |
49316 |
30407 |
product |
51277 |
M |
0 |
|
51277 |
0 |
31__N2uh42L.jpg |
500 |
389 |
N |
49319 |
30406 |
product |
51280 |
M |
0 |
|
51280 |
0 |
31aDz1wf_ZL.jpg |
500 |
394 |
N |
49320 |
30405 |
product |
51281 |
M |
0 |
|
51281 |