Query time 0.00090
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "100.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 ('29695','30855','30885','30913','30968','31003','31051','31057','31154')))",
"cost_info": {
"read_cost": "31.81",
"eval_cost": "3.80",
"prefix_cost": "35.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": "58.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": "81.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 |
414lC7BCkCL.jpg |
500 |
417 |
N |
45878 |
29695 |
product |
47840 |
M |
0 |
|
47840 |
0 |
714gNhup6CL._SL1000_.jpg |
1000 |
1000 |
N |
48906 |
30855 |
product |
50867 |
M |
0 |
|
50867 |
0 |
61_SZr6V9GL._SL1000_.jpg |
1000 |
1000 |
N |
48975 |
30913 |
product |
50936 |
M |
0 |
|
50936 |
0 |
71menuYQnEL._AC_UL436_.jpg |
436 |
436 |
N |
49378 |
31003 |
product |
51339 |
M |
0 |
|
51339 |
0 |
71glpY1HwjL._SL1000_.jpg |
1000 |
1000 |
N |
49410 |
30885 |
product |
51371 |
M |
0 |
|
51371 |
0 |
51gZ_QvWbTL._SL1025_.jpg |
1025 |
1025 |
N |
49501 |
30968 |
product |
51462 |
M |
0 |
|
51462 |
0 |
714gNhup6CL._SL1000_.jpg |
1000 |
1000 |
N |
49627 |
31051 |
product |
51588 |
M |
0 |
|
51588 |
0 |
61ppf0xnA5L._AC_UL436_SEARCH212385_.jpg |
397 |
436 |
N |
49761 |
31154 |
product |
51722 |
M |
0 |
|
51722 |
0 |
2_y7dt-8y.jpg |
640 |
626 |
N |
82757 |
31057 |
product |
84700 |
M |
0 |
|
84700 |