Query time 0.00163
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "16.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": 16,
"rows_produced_per_join": 16,
"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 ('8227','8228','8229','8230','8231','4579','4580','4581','4582','4583','4584','3341','3342','3343','3344','3345')))",
"cost_info": {
"read_cost": "35.21",
"eval_cost": "3.20",
"prefix_cost": "38.41",
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "57.61",
"data_read_per_join": "12K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "76.81",
"data_read_per_join": "9K"
},
"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 |
item_XXL_45960231_c47ee9371a859.jpg |
552 |
448 |
N |
8412 |
3341 |
product |
10377 |
M |
0 |
|
10377 |
0 |
item_XXL_40112470_e10ce9f5b0dd0.jpg |
407 |
969 |
N |
8417 |
3342 |
product |
10382 |
M |
0 |
|
10382 |
0 |
item_XXL_33449039_131104983.jpg |
1000 |
1000 |
N |
8424 |
3343 |
product |
10389 |
M |
0 |
|
10389 |
0 |
item_XXL_42531389_829317eb59055.jpg |
1000 |
1000 |
N |
8427 |
3344 |
product |
10392 |
M |
0 |
|
10392 |
0 |
item_XXL_41146031_ded1f684a857c.jpg |
418 |
761 |
N |
8432 |
3345 |
product |
10397 |
M |
0 |
|
10397 |
0 |
item_XXL_40597452_1652202715766.jpg |
576 |
584 |
N |
9806 |
4579 |
product |
11771 |
M |
0 |
|
11771 |
0 |
item_XXL_39245512_152694261.jpg |
1000 |
1000 |
N |
9811 |
4580 |
product |
11776 |
M |
0 |
|
11776 |
0 |
item_XXL_38726940_151004898.jpg |
1000 |
1140 |
N |
9814 |
4581 |
product |
11779 |
M |
0 |
|
11779 |
0 |
item_XXL_39240455_152678919.jpg |
1000 |
1114 |
N |
9815 |
4582 |
product |
11780 |
M |
0 |
|
11780 |
0 |
item_XXL_22105794_29332780.jpg |
777 |
738 |
N |
9821 |
4583 |
product |
11786 |
M |
0 |
|
11786 |
0 |
51zYzm4vQyL._SX466_.jpg |
466 |
466 |
N |
17174 |
8229 |
product |
19136 |
M |
0 |
|
19136 |
0 |
item_XL_38360201_149718529.jpg |
408 |
600 |
N |
17176 |
8230 |
product |
19138 |
M |
0 |
|
19138 |
0 |
item_XL_38359855_149714931.jpg |
404 |
600 |
N |
17178 |
8231 |
product |
19140 |
M |
0 |
|
19140 |
0 |
2_5ye1-69.jpg |
640 |
626 |
N |
78236 |
8227 |
product |
80179 |
M |
0 |
|
80179 |
0 |
2_mowf-v0.jpg |
640 |
626 |
N |
82051 |
8228 |
product |
83994 |
M |
0 |
|
83994 |
0 |
item_XXL_28942637_85003857.jpg |
344 |
408 |
N |
83961 |
4584 |
product |
13361 |
M |
0 |
|
13361 |