Query time 0.00422
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 ('14723','14724','14725','14726','14727','14728','14729','14730','14731','14732','14733','14734','14735','14736','14737','14738')))",
"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 |
311MHhATBdL.jpg |
500 |
500 |
N |
28631 |
14723 |
product |
30593 |
M |
0 |
|
30593 |
0 |
41Y8FvTP_LL.jpg |
380 |
500 |
N |
28632 |
14724 |
product |
30594 |
M |
0 |
|
30594 |
0 |
41tXvDyT1aL.jpg |
500 |
500 |
N |
28633 |
14725 |
product |
30595 |
M |
0 |
|
30595 |
0 |
41LW5iCJv9L.jpg |
500 |
301 |
N |
28634 |
14726 |
product |
30596 |
M |
0 |
|
30596 |
0 |
315Xwr8ggqL.jpg |
500 |
500 |
N |
28635 |
14727 |
product |
30597 |
M |
0 |
|
30597 |
0 |
41FGOrd2gPL.jpg |
500 |
500 |
N |
28636 |
14728 |
product |
30598 |
M |
0 |
|
30598 |
0 |
41daTmtKEEL.jpg |
500 |
500 |
N |
28637 |
14729 |
product |
30599 |
M |
0 |
|
30599 |
0 |
41kKxSgxo9L.jpg |
500 |
500 |
N |
28638 |
14730 |
product |
30600 |
M |
0 |
|
30600 |
0 |
51Rz9un8L2L.jpg |
500 |
444 |
N |
28639 |
14731 |
product |
30601 |
M |
0 |
|
30601 |
0 |
41DsdaIuw2L.jpg |
500 |
500 |
N |
28640 |
14732 |
product |
30602 |
M |
0 |
|
30602 |
0 |
51_FRVAJJnL.jpg |
500 |
500 |
N |
28641 |
14733 |
product |
30603 |
M |
0 |
|
30603 |
0 |
51ACNvs1tgL.jpg |
500 |
500 |
N |
28642 |
14734 |
product |
30604 |
M |
0 |
|
30604 |
0 |
414gN0Q1TuL.jpg |
500 |
442 |
N |
28643 |
14735 |
product |
30605 |
M |
0 |
|
30605 |
0 |
51eBi5wA93L.jpg |
500 |
500 |
N |
28644 |
14736 |
product |
30606 |
M |
0 |
|
30606 |
0 |
41VtNVFxy-L.jpg |
500 |
375 |
N |
28645 |
14737 |
product |
30607 |
M |
0 |
|
30607 |
0 |
41in6c9OYGL.jpg |
500 |
375 |
N |
28646 |
14738 |
product |
30608 |
M |
0 |
|
30608 |