Query time 0.00106
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "160.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "30.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": 30,
"rows_produced_per_join": 30,
"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 ('36649','36651','36660','36661','36662','36666','36669','36673','36678','36679','36680','36683','36684','36685','36686','36687')))",
"cost_info": {
"read_cost": "52.01",
"eval_cost": "6.00",
"prefix_cost": "58.01",
"data_read_per_join": "2K"
},
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "94.01",
"data_read_per_join": "22K"
},
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "130.01",
"data_read_per_join": "17K"
},
"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 |
81Y2TjQTJ-L._SL1500_.jpg |
1500 |
1500 |
N |
58357 |
36651 |
product |
60313 |
M |
0 |
|
60313 |
0 |
514fjtvPkwL.jpg |
500 |
500 |
N |
60314 |
36687 |
product |
62270 |
M |
0 |
|
62270 |
0 |
61f2aaypLOL._SL1500_.jpg |
1500 |
1500 |
N |
60349 |
36686 |
product |
62305 |
M |
0 |
|
62305 |
0 |
61S_Wx9-6KL._SL1000_.jpg |
1000 |
1000 |
N |
60373 |
36685 |
product |
62329 |
M |
0 |
|
62329 |
0 |
71Yz2B-pMUL._SL1500_.jpg |
1500 |
1500 |
N |
60412 |
36684 |
product |
62368 |
M |
0 |
|
62368 |
0 |
gucci-bloom-deluxe-aed-630.jpg |
2220 |
1585 |
N |
60477 |
36683 |
product |
62433 |
M |
0 |
|
62433 |
0 |
81a4Yub-ZLL._SL1500_.jpg |
1500 |
1500 |
N |
60584 |
36680 |
product |
62540 |
M |
0 |
|
62540 |
0 |
61QCOWkW9VL._SL1000_.jpg |
1000 |
1000 |
N |
60615 |
36679 |
product |
62571 |
M |
0 |
|
62571 |
0 |
81ruTZEbyUL._SL1500_.jpg |
1015 |
1500 |
N |
60632 |
36678 |
product |
62588 |
M |
0 |
|
62588 |
0 |
375x500.41896.jpg |
375 |
500 |
N |
60917 |
36673 |
product |
62873 |
M |
0 |
|
62873 |
0 |
61Dx9DxBlYL._SL1200_.jpg |
1200 |
1200 |
N |
61032 |
36669 |
product |
62988 |
M |
0 |
|
62988 |
0 |
71GpUX_nLlL._SL1500_.jpg |
1500 |
1500 |
N |
61158 |
36666 |
product |
63114 |
M |
0 |
|
63114 |
0 |
61T7GTfvdHL._SL1200_.jpg |
1200 |
1200 |
N |
61385 |
36662 |
product |
63341 |
M |
0 |
|
63341 |
0 |
51QecIcKkOL._SL1000_.jpg |
1000 |
1000 |
N |
61649 |
36661 |
product |
63605 |
M |
0 |
|
63605 |
0 |
61MHNyZVBZL._SL1000_.jpg |
1000 |
1000 |
N |
61670 |
36660 |
product |
63626 |
M |
0 |
|
63626 |
0 |
51BQF2jIPyL._SL1200_.jpg |
1200 |
1200 |
N |
61829 |
36649 |
product |
63785 |
M |
0 |
|
63785 |