Query time 0.00152
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "174.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "30.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": 30,
"rows_produced_per_join": 30,
"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 ('8944','8945','8987','9061','9062','9063','9064','9065','9066','9067','9068','9069','9070','9088','9125','9126','9211','9212','9513','9514','9515','9516','9517','9518','9519','9598','9599','9656','9659','9660')))",
"cost_info": {
"read_cost": "66.01",
"eval_cost": "6.00",
"prefix_cost": "72.01",
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "108.01",
"data_read_per_join": "22K"
},
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "144.01",
"data_read_per_join": "17K"
},
"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 |
|
|
|
|
19768 |
8944 |
product |
21730 |
M |
0 |
|
|
0 |
|
|
|
|
19769 |
8945 |
product |
21731 |
M |
0 |
|
|
0 |
|
|
|
|
19810 |
8987 |
product |
21772 |
M |
0 |
|
|
0 |
|
|
|
|
19884 |
9061 |
product |
21846 |
M |
0 |
|
|
0 |
|
|
|
|
19886 |
9063 |
product |
21848 |
M |
0 |
|
|
0 |
|
|
|
|
19887 |
9064 |
product |
21849 |
M |
0 |
|
|
0 |
|
|
|
|
19888 |
9065 |
product |
21850 |
M |
0 |
|
|
0 |
|
|
|
|
19890 |
9067 |
product |
21852 |
M |
0 |
|
|
0 |
|
|
|
|
19891 |
9068 |
product |
21853 |
M |
0 |
|
|
0 |
|
|
|
|
19893 |
9070 |
product |
21855 |
M |
0 |
|
|
0 |
|
|
|
|
19911 |
9088 |
product |
21873 |
M |
0 |
|
|
0 |
|
|
|
|
19948 |
9125 |
product |
21910 |
M |
0 |
|
|
0 |
|
|
|
|
19949 |
9126 |
product |
21911 |
M |
0 |
|
|
0 |
|
|
|
|
20034 |
9211 |
product |
21996 |
M |
0 |
|
|
0 |
|
|
|
|
20337 |
9513 |
product |
22299 |
M |
0 |
|
|
0 |
|
|
|
|
20338 |
9514 |
product |
22300 |
M |
0 |
|
|
0 |
|
|
|
|
20339 |
9515 |
product |
22301 |
M |
0 |
|
|
0 |
|
|
|
|
20340 |
9516 |
product |
22302 |
M |
0 |
|
|
0 |
|
|
|
|
20341 |
9517 |
product |
22303 |
M |
0 |
|
|
0 |
|
|
|
|
20342 |
9518 |
product |
22304 |
M |
0 |
|
|
0 |
|
|
|
|
20422 |
9598 |
product |
22384 |
M |
0 |
|
|
0 |
|
|
|
|
20423 |
9599 |
product |
22385 |
M |
0 |
|
|
0 |
|
|
|
|
20480 |
9656 |
product |
22442 |
M |
0 |
|
|
0 |
|
|
|
|
20483 |
9659 |
product |
22445 |
M |
0 |
|
|
0 |
|
|
|
|
20484 |
9660 |
product |
22446 |
M |
0 |
|
|
0 |
|
|
|
|
21157 |
9069 |
product |
23119 |
M |
0 |
|
|
0 |
|
|
|
|
25827 |
9519 |
product |
27789 |
M |
0 |
|
|
0 |
|
|
|
|
81442 |
9066 |
product |
83385 |
M |
0 |
|
|
0 |
|
|
|
|
81465 |
9062 |
product |
83408 |
M |
0 |
|
|
0 |
|
|
|
|
81480 |
9212 |
product |
83423 |
M |
0 |
|
|