Query time 0.00110
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "97.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "17.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": 17,
"rows_produced_per_join": 17,
"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 ('9501','9502','9503','9504','9505','9506','9507','9508','9509','9510','9511','9512','9513','9514','9515','9516')))",
"cost_info": {
"read_cost": "36.41",
"eval_cost": "3.40",
"prefix_cost": "39.81",
"data_read_per_join": "1K"
},
"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": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.00",
"eval_cost": "3.40",
"prefix_cost": "60.21",
"data_read_per_join": "13K"
},
"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": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.00",
"eval_cost": "3.40",
"prefix_cost": "80.61",
"data_read_per_join": "10K"
},
"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 |
HX-PEM05-EU_3.jpg |
800 |
800 |
N |
20326 |
9502 |
product |
22288 |
M |
0 |
|
22288 |
0 |
ICP-IM292-BLU_LS.jpg |
800 |
800 |
N |
20329 |
9505 |
product |
22291 |
M |
0 |
|
22291 |
0 |
ICP-IM294-FRST_2.jpg |
800 |
800 |
N |
20331 |
9507 |
product |
22293 |
M |
0 |
|
22293 |
0 |
ICP-IM295-FRST_3.jpg |
1500 |
1500 |
N |
20332 |
9508 |
product |
22294 |
M |
0 |
|
22294 |
0 |
ICP-IM296-CLR.jpg |
1600 |
1600 |
N |
20333 |
9509 |
product |
22295 |
M |
0 |
|
22295 |
0 |
ICP-IM296-RBY_2.jpg |
225 |
225 |
N |
20334 |
9510 |
product |
22296 |
M |
0 |
|
22296 |
0 |
ICP-IM296-SMK_1.jpg |
760 |
760 |
N |
20335 |
9511 |
product |
22297 |
M |
0 |
|
22297 |
0 |
ICP-IPD371-CBLK_1.jpg |
650 |
650 |
N |
20337 |
9513 |
product |
22299 |
M |
0 |
|
22299 |
0 |
ICP-IPD378-BLK_2_9126c922-d5e4-4750-8ffa-6eb688d905f5.jpg |
355 |
355 |
N |
20338 |
9514 |
product |
22300 |
M |
0 |
|
22300 |
0 |
ICP-IPD378-BLU_284f775f-b08c-4750-9424-d981f9664c7c.jpg |
1500 |
1500 |
N |
20339 |
9515 |
product |
22301 |
M |
0 |
|
22301 |
0 |
ICP-IPD379-BLK_3.jpg |
600 |
600 |
N |
20340 |
9516 |
product |
22302 |
M |
0 |
|
22302 |
0 |
41Cvm34HFmL.jpg |
500 |
500 |
N |
25597 |
9506 |
product |
27559 |
M |
0 |
|
27559 |
0 |
61ADNHwOT6L._SL1500_.jpg |
1500 |
1500 |
N |
25600 |
9504 |
product |
27562 |
M |
0 |
|
27562 |
0 |
61J_EolJ0EL._SL1500_.jpg |
1500 |
938 |
N |
26033 |
9512 |
product |
27995 |
M |
0 |
|
27995 |
0 |
2_9eag-tz.jpg |
640 |
626 |
N |
83166 |
9501 |
product |
85109 |
M |
0 |
|
85109 |
0 |
71_HtwBtShL._SL1000_.jpg |
975 |
1000 |
N |
25601 |
9503 |
product |
27563 |
M |
1 |
|
27563 |