Query time 0.00093
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "97.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "17.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": 17,
"rows_produced_per_join": 17,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') and (`portal`.`q_images_links`.`object_id` in ('13177','13178','13179','13180','13181','13182','13183','13184','13185','13186','13187','13188','13189','13190','13191','13192')))",
"cost_info": {
"read_cost": "36.41",
"eval_cost": "3.40",
"prefix_cost": "39.81",
"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": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.00",
"eval_cost": "3.40",
"prefix_cost": "60.21",
"data_read_per_join": "13K"
},
"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": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.00",
"eval_cost": "3.40",
"prefix_cost": "80.61",
"data_read_per_join": "10K"
},
"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 |
c06a1ea1327b2e4b774cefdcd5403d63.jpg |
700 |
600 |
N |
26981 |
13180 |
product |
28943 |
A |
1 |
|
28943 |
0 |
90f5578ecbdb3748b157c648c10c0c5a.jpg |
700 |
600 |
N |
26986 |
13185 |
product |
28948 |
A |
1 |
|
28948 |
0 |
LTP-1177A-3ADF-500x600.jpg |
500 |
600 |
N |
26990 |
13189 |
product |
28952 |
A |
1 |
|
28952 |
0 |
Watch-for-Women-by-Casio-Analog-Stainless-Steel-Gold-LTP-1169N-9A_1292533_07324b0876f6a92f45db703eb8bd4823_t.jpg |
127 |
300 |
N |
27365 |
13181 |
product |
29327 |
A |
1 |
|
29327 |
0 |
81s32dhxxFL._SX679_.jpg |
679 |
679 |
N |
27369 |
13178 |
product |
29331 |
A |
1 |
|
29331 |
0 |
81SqXEwN5hL._UL1500_.jpg |
1500 |
1500 |
N |
27359 |
13190 |
product |
29321 |
A |
2 |
|
29321 |
0 |
ltp-1177a-3a-1000x1000.jpg |
650 |
650 |
N |
27360 |
13189 |
product |
29322 |
A |
2 |
|
29322 |
0 |
11699996_780e6b0c-5854-4e88-8fb1-46d40eb02472.jpg |
700 |
700 |
N |
27361 |
13186 |
product |
29323 |
A |
2 |
|
29323 |