Query time 0.00084
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 ('29843','29844','29845','29846','29847','29848','29849','29850','29851','29852','29853','29854','29855','29856','29857','29858')))",
"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 |
|
|
|
|
47385 |
29858 |
product |
49347 |
M |
0 |
|
|
0 |
|
|
|
|
47386 |
29857 |
product |
49348 |
M |
0 |
|
|
0 |
|
|
|
|
47387 |
29856 |
product |
49349 |
M |
0 |
|
|
0 |
|
|
|
|
47389 |
29855 |
product |
49351 |
M |
0 |
|
|
0 |
|
|
|
|
47390 |
29854 |
product |
49352 |
M |
0 |
|
|
0 |
|
|
|
|
47391 |
29853 |
product |
49353 |
M |
0 |
|
|
0 |
|
|
|
|
47392 |
29852 |
product |
49354 |
M |
0 |
|
|
0 |
|
|
|
|
47393 |
29851 |
product |
49355 |
M |
0 |
|
|
0 |
|
|
|
|
47394 |
29850 |
product |
49356 |
M |
0 |
|
|
0 |
|
|
|
|
47395 |
29849 |
product |
49357 |
M |
0 |
|
|
0 |
|
|
|
|
47396 |
29848 |
product |
49358 |
M |
0 |
|
|
0 |
|
|
|
|
47397 |
29847 |
product |
49359 |
M |
0 |
|
|
0 |
|
|
|
|
47398 |
29846 |
product |
49360 |
M |
0 |
|
|
0 |
|
|
|
|
47399 |
29845 |
product |
49361 |
M |
0 |
|
|
0 |
|
|
|
|
47400 |
29844 |
product |
49362 |
M |
0 |
|
|
0 |
|
|
|
|
47401 |
29843 |
product |
49363 |
M |
0 |
|
|