Query time 0.00161
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 ('9677','9678','9679','9680','9681','9682','9683','9684','9685','9686','9687','9688','9689','9690','9691','9692')))",
"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 |
MSHI-H-072531.jpg |
1400 |
1400 |
N |
20501 |
9677 |
product |
22463 |
M |
0 |
|
22463 |
0 |
MSHI-H-072532_2.jpg |
1600 |
1600 |
N |
20502 |
9678 |
product |
22464 |
M |
0 |
|
22464 |
0 |
Sensecover_ipx_brown_01_Front.jpg |
4000 |
4000 |
N |
20503 |
9679 |
product |
22465 |
M |
0 |
|
22465 |
0 |
Airfoil_iPhone_Edition_01_Ftont_copy.jpg |
1000 |
1000 |
N |
20504 |
9680 |
product |
22466 |
M |
0 |
|
22466 |
0 |
MSHI-H-085009_3.jpg |
1600 |
1600 |
N |
20507 |
9683 |
product |
22469 |
M |
0 |
|
22469 |
0 |
MSHI-H-085010.jpg |
1500 |
1500 |
N |
20508 |
9684 |
product |
22470 |
M |
0 |
|
22470 |
0 |
MSHI-H-086007_7.jpg |
800 |
800 |
N |
20509 |
9685 |
product |
22471 |
M |
0 |
|
22471 |
0 |
MSHI-H-088901_LS.jpg |
800 |
800 |
N |
20510 |
9686 |
product |
22472 |
M |
0 |
|
22472 |
0 |
Moshi_iPhone_8_Overture_-_Charcoal_Black_1.jpg |
225 |
225 |
N |
20511 |
9687 |
product |
22473 |
M |
0 |
|
22473 |
0 |
Moshi_iPhone_8_Plus_Overture_-_Charcoal_Black_2.jpg |
750 |
750 |
N |
20512 |
9688 |
product |
22474 |
M |
0 |
|
22474 |
0 |
Overture_iPhone_L_Black_05_Stand.jpg |
4000 |
4000 |
N |
20513 |
9689 |
product |
22475 |
M |
0 |
|
22475 |
0 |
MSHI-H-091010.jpg |
1600 |
1600 |
N |
20514 |
9690 |
product |
22476 |
M |
0 |
|
22476 |
0 |
MOSHI_Overture_for_iPhone_8_7_6S_6_Plus_Sahara_White.jpg |
1280 |
1280 |
N |
20515 |
9691 |
product |
22477 |
M |
0 |
|
22477 |
0 |
MSHI-H-091261_2.jpg |
700 |
700 |
N |
20516 |
9692 |
product |
22478 |
M |
0 |
|
22478 |
0 |
2_2hbx-m6.jpg |
640 |
626 |
N |
83243 |
9682 |
product |
85186 |
M |
0 |
|
85186 |
0 |
71AW7Xy-Q9L._SL1500_.jpg |
925 |
1500 |
N |
26386 |
9681 |
product |
28348 |
M |
1 |
|
28348 |