Query time 0.00257
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "184.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "35.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": 35,
"rows_produced_per_join": 35,
"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 ('38189','38190','38191','38192','38193','38194','38195','38198','38202','38203','38204','38205','38206','38207','38208','38209')))",
"cost_info": {
"read_cost": "58.01",
"eval_cost": "7.00",
"prefix_cost": "65.01",
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "7.00",
"prefix_cost": "107.01",
"data_read_per_join": "26K"
},
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "7.00",
"prefix_cost": "149.01",
"data_read_per_join": "20K"
},
"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 |
|
|
|
|
59340 |
38191 |
product |
61296 |
M |
0 |
|
|
0 |
|
|
|
|
59342 |
38193 |
product |
61298 |
M |
0 |
|
|
0 |
|
|
|
|
59343 |
38189 |
product |
61299 |
M |
0 |
|
|
0 |
|
|
|
|
59344 |
38194 |
product |
61300 |
M |
0 |
|
|
0 |
|
|
|
|
59345 |
38195 |
product |
61301 |
M |
0 |
|
|
0 |
|
|
|
|
62005 |
38190 |
product |
63961 |
M |
0 |
|
|
0 |
|
|
|
|
62572 |
38209 |
product |
64528 |
M |
0 |
|
|
0 |
|
|
|
|
62574 |
38208 |
product |
64530 |
M |
0 |
|
|
0 |
|
|
|
|
62576 |
38207 |
product |
64532 |
M |
0 |
|
|
0 |
|
|
|
|
62577 |
38206 |
product |
64533 |
M |
0 |
|
|
0 |
|
|
|
|
62578 |
38205 |
product |
64534 |
M |
0 |
|
|
0 |
|
|
|
|
62579 |
38204 |
product |
64535 |
M |
0 |
|
|
0 |
|
|
|
|
62580 |
38203 |
product |
64536 |
M |
0 |
|
|
0 |
|
|
|
|
62581 |
38202 |
product |
64537 |
M |
0 |
|
|
0 |
|
|
|
|
62582 |
38198 |
product |
64538 |
M |
0 |
|
|
0 |
|
|
|
|
83052 |
38192 |
product |
84995 |
M |
0 |
|
|