Query time 0.00118
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "112.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "20.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": 20,
"rows_produced_per_join": 20,
"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 ('14707','14708','14709','14710','14711','14712','14713','14714','14715','14716','14717','14718','14719','14720','14721','14722')))",
"cost_info": {
"read_cost": "40.01",
"eval_cost": "4.00",
"prefix_cost": "44.01",
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "68.01",
"data_read_per_join": "15K"
},
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "92.01",
"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 |
51iD1VzQwdL.jpg |
311 |
500 |
N |
28615 |
14707 |
product |
30577 |
M |
0 |
|
30577 |
0 |
31nuuXlvuRL.jpg |
500 |
263 |
N |
28616 |
14708 |
product |
30578 |
M |
0 |
|
30578 |
0 |
41IHGl01oCL.jpg |
500 |
500 |
N |
28617 |
14709 |
product |
30579 |
M |
0 |
|
30579 |
0 |
41IZE_IfamL.jpg |
500 |
281 |
N |
28618 |
14710 |
product |
30580 |
M |
0 |
|
30580 |
0 |
41z3vHs12rL.jpg |
500 |
500 |
N |
28619 |
14711 |
product |
30581 |
M |
0 |
|
30581 |
0 |
41aQtjRSPzL.jpg |
500 |
500 |
N |
28620 |
14712 |
product |
30582 |
M |
0 |
|
30582 |
0 |
41-W-cVdGML.jpg |
500 |
500 |
N |
28621 |
14713 |
product |
30583 |
M |
0 |
|
30583 |
0 |
51KJnsqeN6L.jpg |
500 |
500 |
N |
28622 |
14714 |
product |
30584 |
M |
0 |
|
30584 |
0 |
41JIAopL49L.jpg |
500 |
500 |
N |
28623 |
14715 |
product |
30585 |
M |
0 |
|
30585 |
0 |
51T7xT8UDcL.jpg |
500 |
375 |
N |
28624 |
14716 |
product |
30586 |
M |
0 |
|
30586 |
0 |
317pwzSu46L.jpg |
500 |
500 |
N |
28625 |
14717 |
product |
30587 |
M |
0 |
|
30587 |
0 |
51drYzjhPUL.jpg |
500 |
500 |
N |
28626 |
14718 |
product |
30588 |
M |
0 |
|
30588 |
0 |
31ld7KJ-ViL.jpg |
500 |
333 |
N |
28627 |
14719 |
product |
30589 |
M |
0 |
|
30589 |
0 |
41FWrgzuPqL.jpg |
500 |
500 |
N |
28628 |
14720 |
product |
30590 |
M |
0 |
|
30590 |
0 |
41t9e7sdf8L.jpg |
500 |
500 |
N |
28629 |
14721 |
product |
30591 |
M |
0 |
|
30591 |
0 |
31cm6pbZi5L.jpg |
500 |
500 |
N |
28630 |
14722 |
product |
30592 |
M |
0 |
|
30592 |