Query time 0.00156
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "178.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "31.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": 31,
"rows_produced_per_join": 31,
"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 ('648','649','650','651','652','635','587','588','589','590','591','592','593','594','595','596','597','598','599','600','601','602','603','604','605','606','607','608','609','610')))",
"cost_info": {
"read_cost": "67.21",
"eval_cost": "6.20",
"prefix_cost": "73.41",
"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.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "31.00",
"eval_cost": "6.20",
"prefix_cost": "110.61",
"data_read_per_join": "23K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
]
}
},
{
"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": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "31.00",
"eval_cost": "6.20",
"prefix_cost": "147.81",
"data_read_per_join": "18K"
},
"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 |
|
|
|
|
1205 |
587 |
product |
3182 |
M |
0 |
|
|
0 |
|
|
|
|
1209 |
589 |
product |
3186 |
M |
0 |
|
|
0 |
|
|
|
|
1211 |
590 |
product |
3188 |
M |
0 |
|
|
0 |
|
|
|
|
1213 |
591 |
product |
3190 |
M |
0 |
|
|
0 |
|
|
|
|
1215 |
592 |
product |
3192 |
M |
0 |
|
|
0 |
|
|
|
|
1219 |
594 |
product |
3196 |
M |
0 |
|
|
0 |
|
|
|
|
1221 |
595 |
product |
3198 |
M |
0 |
|
|
0 |
|
|
|
|
1223 |
596 |
product |
3200 |
M |
0 |
|
|
0 |
|
|
|
|
1225 |
597 |
product |
3202 |
M |
0 |
|
|
0 |
|
|
|
|
1227 |
598 |
product |
3204 |
M |
0 |
|
|
0 |
|
|
|
|
1229 |
599 |
product |
3206 |
M |
0 |
|
|
0 |
|
|
|
|
1231 |
600 |
product |
3208 |
M |
0 |
|
|
0 |
|
|
|
|
1233 |
601 |
product |
3210 |
M |
0 |
|
|
0 |
|
|
|
|
1235 |
602 |
product |
3212 |
M |
0 |
|
|
0 |
|
|
|
|
1237 |
603 |
product |
3214 |
M |
0 |
|
|
0 |
|
|
|
|
1239 |
604 |
product |
3216 |
M |
0 |
|
|
0 |
|
|
|
|
1241 |
605 |
product |
3218 |
M |
0 |
|
|
0 |
|
|
|
|
1243 |
606 |
product |
3220 |
M |
0 |
|
|
0 |
|
|
|
|
1245 |
607 |
product |
3222 |
M |
0 |
|
|
0 |
|
|
|
|
1247 |
608 |
product |
3224 |
M |
0 |
|
|
0 |
|
|
|
|
1249 |
609 |
product |
3226 |
M |
0 |
|
|
0 |
|
|
|
|
1251 |
610 |
product |
3228 |
M |
0 |
|
|
0 |
|
|
|
|
1296 |
593 |
product |
3273 |
M |
0 |
|
|
0 |
|
|
|
|
1407 |
635 |
product |
3384 |
M |
0 |
|
|
0 |
|
|
|
|
1434 |
648 |
product |
3411 |
M |
0 |
|
|
0 |
|
|
|
|
1436 |
649 |
product |
3413 |
M |
0 |
|
|
0 |
|
|
|
|
1438 |
650 |
product |
3415 |
M |
0 |
|
|
0 |
|
|
|
|
1440 |
651 |
product |
3417 |
M |
0 |
|
|
0 |
|
|
|
|
1442 |
652 |
product |
3419 |
M |
0 |
|
|
0 |
|
|
|
|
83085 |
588 |
product |
85028 |
M |
0 |
|
|