Query time 0.00106
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "241.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "47.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": 47,
"rows_produced_per_join": 47,
"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 ('30370','30371','30372','30373','30374','30375','30376','30377','30378','30379','30380','30381','30382','30383','30384','30385')))",
"cost_info": {
"read_cost": "72.41",
"eval_cost": "9.40",
"prefix_cost": "81.81",
"data_read_per_join": "4K"
},
"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": 47,
"filtered": "100.00",
"cost_info": {
"read_cost": "47.00",
"eval_cost": "9.40",
"prefix_cost": "138.21",
"data_read_per_join": "35K"
},
"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": 47,
"filtered": "100.00",
"cost_info": {
"read_cost": "47.00",
"eval_cost": "9.40",
"prefix_cost": "194.61",
"data_read_per_join": "27K"
},
"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 |
31MVnRbgZPL.jpg |
500 |
438 |
N |
49185 |
30385 |
product |
51146 |
M |
0 |
|
51146 |
0 |
41kFeb1Ki9L.jpg |
500 |
494 |
N |
49187 |
30383 |
product |
51148 |
M |
0 |
|
51148 |
0 |
71t-1LluWwL._SL1280_.jpg |
1280 |
1280 |
N |
49189 |
30381 |
product |
51150 |
M |
0 |
|
51150 |
0 |
71xRD_-x8bL._SL1500_.jpg |
1500 |
1500 |
N |
49193 |
30380 |
product |
51154 |
M |
0 |
|
51154 |
0 |
619IgngORZL._SL1500_.jpg |
1500 |
1500 |
N |
49195 |
30379 |
product |
51156 |
M |
0 |
|
51156 |
0 |
51f4wOies1L._SL1001_.jpg |
1001 |
1001 |
N |
49197 |
30378 |
product |
51158 |
M |
0 |
|
51158 |
0 |
511ORTyrWlL.jpg |
486 |
500 |
N |
49198 |
30376 |
product |
51159 |
M |
0 |
|
51159 |
0 |
614prq63XwL._SL1001_.jpg |
1001 |
1001 |
N |
49201 |
30377 |
product |
51162 |
M |
0 |
|
51162 |
0 |
517AjfiROPL._SL1000_.jpg |
1000 |
1000 |
N |
49205 |
30375 |
product |
51166 |
M |
0 |
|
51166 |
0 |
31CwxG1HAQL.jpg |
500 |
498 |
N |
49207 |
30374 |
product |
51168 |
M |
0 |
|
51168 |
0 |
51AiaJb8fQL._SL1001_.jpg |
1001 |
1001 |
N |
49208 |
30373 |
product |
51169 |
M |
0 |
|
51169 |
0 |
41GZ2HGJw8L._SL1000_.jpg |
1000 |
1000 |
N |
49210 |
30372 |
product |
51171 |
M |
0 |
|
51171 |
0 |
31IJU0hgkyL.jpg |
500 |
479 |
N |
49213 |
30371 |
product |
51174 |
M |
0 |
|
51174 |
0 |
3123dFsGqUL.jpg |
500 |
500 |
N |
49215 |
30370 |
product |
51176 |
M |
0 |
|
51176 |
0 |
51UYKxccmZL._SL1006_.jpg |
1006 |
1006 |
N |
49321 |
30384 |
product |
51282 |
M |
0 |
|
51282 |
0 |
61Lh5QWZgtL._SL1200_.jpg |
1200 |
1200 |
N |
49322 |
30382 |
product |
51283 |
M |
0 |
|
51283 |