Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "275.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "54.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": 54,
"rows_produced_per_join": 54,
"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 ('29666','29667','29668','29669','29670','29671','29672','29673','29674','29675','29676','29677','29678','29679','29680','29681')))",
"cost_info": {
"read_cost": "80.81",
"eval_cost": "10.80",
"prefix_cost": "91.61",
"data_read_per_join": "5K"
},
"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": 54,
"filtered": "100.00",
"cost_info": {
"read_cost": "54.00",
"eval_cost": "10.80",
"prefix_cost": "156.41",
"data_read_per_join": "41K"
},
"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": 54,
"filtered": "100.00",
"cost_info": {
"read_cost": "54.00",
"eval_cost": "10.80",
"prefix_cost": "221.21",
"data_read_per_join": "32K"
},
"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 |
|
|
|
|
46075 |
29679 |
product |
48037 |
M |
0 |
|
|
0 |
|
|
|
|
46088 |
29678 |
product |
48050 |
M |
0 |
|
|
0 |
|
|
|
|
46101 |
29677 |
product |
48063 |
M |
0 |
|
|
0 |
|
|
|
|
46198 |
29675 |
product |
48160 |
M |
0 |
|
|
0 |
|
|
|
|
46245 |
29676 |
product |
48207 |
M |
0 |
|
|
0 |
|
|
|
|
46250 |
29674 |
product |
48212 |
M |
0 |
|
|
0 |
|
|
|
|
46273 |
29673 |
product |
48235 |
M |
0 |
|
|
0 |
|
|
|
|
46302 |
29672 |
product |
48264 |
M |
0 |
|
|
0 |
|
|
|
|
46328 |
29671 |
product |
48290 |
M |
0 |
|
|
0 |
|
|
|
|
46351 |
29670 |
product |
48313 |
M |
0 |
|
|
0 |
|
|
|
|
46365 |
29668 |
product |
48327 |
M |
0 |
|
|
0 |
|
|
|
|
46391 |
29667 |
product |
48353 |
M |
0 |
|
|
0 |
|
|
|
|
47678 |
29681 |
product |
49639 |
M |
0 |
|
|
0 |
|
|
|
|
47679 |
29669 |
product |
49640 |
M |
0 |
|
|
0 |
|
|
|
|
58590 |
29666 |
product |
60546 |
M |
0 |
|
|
0 |
|
|
|
|
83168 |
29680 |
product |
85111 |
M |
0 |
|
|