Query time 0.00116
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "107.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "19.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": 19,
"rows_produced_per_join": 19,
"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 ('14594','14595','14596','14597','14598','14599','14600','14601','14602','14603','14604','14605','14606','14607','14608','14609')))",
"cost_info": {
"read_cost": "38.81",
"eval_cost": "3.80",
"prefix_cost": "42.61",
"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": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.00",
"eval_cost": "3.80",
"prefix_cost": "65.41",
"data_read_per_join": "14K"
},
"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": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.00",
"eval_cost": "3.80",
"prefix_cost": "88.21",
"data_read_per_join": "11K"
},
"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 |
515uV4gO5_L.jpg |
500 |
500 |
N |
28502 |
14594 |
product |
30464 |
M |
0 |
|
30464 |
0 |
41ME3dilFOL.jpg |
500 |
500 |
N |
28503 |
14595 |
product |
30465 |
M |
0 |
|
30465 |
0 |
51s4ZfsVXYL.jpg |
323 |
500 |
N |
28504 |
14596 |
product |
30466 |
M |
0 |
|
30466 |
0 |
51Ju_qmEY5L.jpg |
500 |
500 |
N |
28505 |
14597 |
product |
30467 |
M |
0 |
|
30467 |
0 |
51FZhaUFoEL.jpg |
500 |
500 |
N |
28506 |
14598 |
product |
30468 |
M |
0 |
|
30468 |
0 |
51bWDhF_SXL.jpg |
500 |
466 |
N |
28507 |
14599 |
product |
30469 |
M |
0 |
|
30469 |
0 |
31qlmGDjDCL.jpg |
500 |
500 |
N |
28508 |
14600 |
product |
30470 |
M |
0 |
|
30470 |
0 |
411dOx6P8HL.jpg |
500 |
500 |
N |
28510 |
14602 |
product |
30472 |
M |
0 |
|
30472 |
0 |
51vojJSIZsL.jpg |
500 |
500 |
N |
28511 |
14603 |
product |
30473 |
M |
0 |
|
30473 |
0 |
415XcNF5plL.jpg |
500 |
500 |
N |
28513 |
14605 |
product |
30475 |
M |
0 |
|
30475 |
0 |
51mBoiB6JcL.jpg |
500 |
496 |
N |
28514 |
14606 |
product |
30476 |
M |
0 |
|
30476 |
0 |
41qQLvVMjzL.jpg |
329 |
500 |
N |
28515 |
14607 |
product |
30477 |
M |
0 |
|
30477 |
0 |
41S_oBRDUGL.jpg |
500 |
500 |
N |
28516 |
14608 |
product |
30478 |
M |
0 |
|
30478 |
0 |
41W_FZxoDJL.jpg |
269 |
500 |
N |
28517 |
14609 |
product |
30479 |
M |
0 |
|
30479 |
0 |
2_wioi-cd.jpg |
640 |
626 |
N |
82047 |
14601 |
product |
83990 |
M |
0 |
|
83990 |
0 |
2_9ns2-ru.jpg |
640 |
626 |
N |
82287 |
14604 |
product |
84230 |
M |
0 |
|
84230 |