Query time 0.00109
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "193.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "37.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": 37,
"rows_produced_per_join": 37,
"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 ('29730','29731','29732','29733','29734','29735','29736','29737','29738','29739','29740','29741','29742','29743','29744','29745')))",
"cost_info": {
"read_cost": "60.41",
"eval_cost": "7.40",
"prefix_cost": "67.81",
"data_read_per_join": "3K"
},
"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": 37,
"filtered": "100.00",
"cost_info": {
"read_cost": "37.00",
"eval_cost": "7.40",
"prefix_cost": "112.21",
"data_read_per_join": "28K"
},
"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": 37,
"filtered": "100.00",
"cost_info": {
"read_cost": "37.00",
"eval_cost": "7.40",
"prefix_cost": "156.61",
"data_read_per_join": "21K"
},
"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 |
|
|
|
|
47219 |
29745 |
product |
49181 |
M |
0 |
|
|
0 |
|
|
|
|
47221 |
29744 |
product |
49183 |
M |
0 |
|
|
0 |
|
|
|
|
47223 |
29743 |
product |
49185 |
M |
0 |
|
|
0 |
|
|
|
|
47225 |
29741 |
product |
49187 |
M |
0 |
|
|
0 |
|
|
|
|
47226 |
29740 |
product |
49188 |
M |
0 |
|
|
0 |
|
|
|
|
47227 |
29739 |
product |
49189 |
M |
0 |
|
|
0 |
|
|
|
|
47229 |
29737 |
product |
49191 |
M |
0 |
|
|
0 |
|
|
|
|
47230 |
29736 |
product |
49192 |
M |
0 |
|
|
0 |
|
|
|
|
47231 |
29735 |
product |
49193 |
M |
0 |
|
|
0 |
|
|
|
|
47233 |
29734 |
product |
49195 |
M |
0 |
|
|
0 |
|
|
|
|
47235 |
29733 |
product |
49197 |
M |
0 |
|
|
0 |
|
|
|
|
47236 |
29732 |
product |
49198 |
M |
0 |
|
|
0 |
|
|
|
|
47237 |
29731 |
product |
49199 |
M |
0 |
|
|
0 |
|
|
|
|
47240 |
29730 |
product |
49202 |
M |
0 |
|
|
0 |
|
|
|
|
51863 |
29738 |
product |
53824 |
M |
0 |
|
|
0 |
|
|
|
|
81593 |
29742 |
product |
83536 |
M |
0 |
|
|