Query time 0.00146
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "212.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "38.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": 38,
"rows_produced_per_join": 38,
"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 ('18685','13484','13499','13505','13507','13514','13517','13537','13553','13554','13555','13556','13573','13596','13599','13644','13683','13686','14366','14367','14370','14385','14399','14401','14403','14404','14405','14406','14418','14423')))",
"cost_info": {
"read_cost": "75.61",
"eval_cost": "7.60",
"prefix_cost": "83.21",
"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": 38,
"filtered": "100.00",
"cost_info": {
"read_cost": "38.00",
"eval_cost": "7.60",
"prefix_cost": "128.81",
"data_read_per_join": "29K"
},
"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": 38,
"filtered": "100.00",
"cost_info": {
"read_cost": "38.00",
"eval_cost": "7.60",
"prefix_cost": "174.41",
"data_read_per_join": "22K"
},
"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 |
|
|
|
|
27378 |
13484 |
product |
29340 |
M |
0 |
|
|
0 |
|
|
|
|
27393 |
13499 |
product |
29355 |
M |
0 |
|
|
0 |
|
|
|
|
27399 |
13505 |
product |
29361 |
M |
0 |
|
|
0 |
|
|
|
|
27401 |
13507 |
product |
29363 |
M |
0 |
|
|
0 |
|
|
|
|
27408 |
13514 |
product |
29370 |
M |
0 |
|
|
0 |
|
|
|
|
27411 |
13517 |
product |
29373 |
M |
0 |
|
|
0 |
|
|
|
|
27431 |
13537 |
product |
29393 |
M |
0 |
|
|
0 |
|
|
|
|
27447 |
13553 |
product |
29409 |
M |
0 |
|
|
0 |
|
|
|
|
27448 |
13554 |
product |
29410 |
M |
0 |
|
|
0 |
|
|
|
|
27449 |
13555 |
product |
29411 |
M |
0 |
|
|
0 |
|
|
|
|
27450 |
13556 |
product |
29412 |
M |
0 |
|
|
0 |
|
|
|
|
27467 |
13573 |
product |
29429 |
M |
0 |
|
|
0 |
|
|
|
|
27490 |
13596 |
product |
29452 |
M |
0 |
|
|
0 |
|
|
|
|
27493 |
13599 |
product |
29455 |
M |
0 |
|
|
0 |
|
|
|
|
27545 |
13644 |
product |
29507 |
M |
0 |
|
|
0 |
|
|
|
|
27584 |
13683 |
product |
29546 |
M |
0 |
|
|
0 |
|
|
|
|
27587 |
13686 |
product |
29549 |
M |
0 |
|
|
0 |
|
|
|
|
28272 |
14366 |
product |
30234 |
M |
0 |
|
|
0 |
|
|
|
|
28273 |
14367 |
product |
30235 |
M |
0 |
|
|
0 |
|
|
|
|
28276 |
14370 |
product |
30238 |
M |
0 |
|
|
0 |
|
|
|
|
28293 |
14385 |
product |
30255 |
M |
0 |
|
|
0 |
|
|
|
|
28307 |
14399 |
product |
30269 |
M |
0 |
|
|
0 |
|
|
|
|
28309 |
14401 |
product |
30271 |
M |
0 |
|
|
0 |
|
|
|
|
28311 |
14403 |
product |
30273 |
M |
0 |
|
|
0 |
|
|
|
|
28312 |
14404 |
product |
30274 |
M |
0 |
|
|
0 |
|
|
|
|
28313 |
14405 |
product |
30275 |
M |
0 |
|
|
0 |
|
|
|
|
28314 |
14406 |
product |
30276 |
M |
0 |
|
|
0 |
|
|
|
|
28326 |
14418 |
product |
30288 |
M |
0 |
|
|
0 |
|
|
|
|
28331 |
14423 |
product |
30293 |
M |
0 |
|
|
0 |
|
|
|
|
32620 |
18685 |
product |
34582 |
M |
0 |
|
|