Query time 0.00127
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "356.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "68.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": 68,
"rows_produced_per_join": 68,
"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 ('29707','29709','29712','29716','29718','29726','29727','29728','29732','29733','29735','29736','29737','29743','29747','29748','29754','29755','29758','29761','29762','29765','29766','29769','29770','29771','29775','29780','29781','29787')))",
"cost_info": {
"read_cost": "111.61",
"eval_cost": "13.60",
"prefix_cost": "125.21",
"data_read_per_join": "6K"
},
"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": 68,
"filtered": "100.00",
"cost_info": {
"read_cost": "68.00",
"eval_cost": "13.60",
"prefix_cost": "206.81",
"data_read_per_join": "52K"
},
"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": 68,
"filtered": "100.00",
"cost_info": {
"read_cost": "68.00",
"eval_cost": "13.60",
"prefix_cost": "288.41",
"data_read_per_join": "40K"
},
"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 |
|
|
|
|
45692 |
29707 |
product |
47654 |
M |
0 |
|
|
0 |
|
|
|
|
46623 |
29765 |
product |
48585 |
M |
0 |
|
|
0 |
|
|
|
|
46683 |
29762 |
product |
48645 |
M |
0 |
|
|
0 |
|
|
|
|
46704 |
29761 |
product |
48666 |
M |
0 |
|
|
0 |
|
|
|
|
46807 |
29755 |
product |
48769 |
M |
0 |
|
|
0 |
|
|
|
|
47213 |
29748 |
product |
49175 |
M |
0 |
|
|
0 |
|
|
|
|
47215 |
29747 |
product |
49177 |
M |
0 |
|
|
0 |
|
|
|
|
47223 |
29743 |
product |
49185 |
M |
0 |
|
|
0 |
|
|
|
|
47229 |
29737 |
product |
49191 |
M |
0 |
|
|
0 |
|
|
|
|
47230 |
29736 |
product |
49192 |
M |
0 |
|
|
0 |
|
|
|
|
47231 |
29735 |
product |
49193 |
M |
0 |
|
|
0 |
|
|
|
|
47235 |
29733 |
product |
49197 |
M |
0 |
|
|
0 |
|
|
|
|
47236 |
29732 |
product |
49198 |
M |
0 |
|
|
0 |
|
|
|
|
47244 |
29728 |
product |
49206 |
M |
0 |
|
|
0 |
|
|
|
|
47245 |
29727 |
product |
49207 |
M |
0 |
|
|
0 |
|
|
|
|
47247 |
29726 |
product |
49209 |
M |
0 |
|
|
0 |
|
|
|
|
47261 |
29718 |
product |
49223 |
M |
0 |
|
|
0 |
|
|
|
|
47652 |
29781 |
product |
49613 |
M |
0 |
|
|
0 |
|
|
|
|
47653 |
29780 |
product |
49614 |
M |
0 |
|
|
0 |
|
|
|
|
47656 |
29775 |
product |
49617 |
M |
0 |
|
|
0 |
|
|
|
|
47661 |
29771 |
product |
49622 |
M |
0 |
|
|
0 |
|
|
|
|
47662 |
29770 |
product |
49623 |
M |
0 |
|
|
0 |
|
|
|
|
47663 |
29769 |
product |
49624 |
M |
0 |
|
|
0 |
|
|
|
|
47665 |
29766 |
product |
49626 |
M |
0 |
|
|
0 |
|
|
|
|
47667 |
29754 |
product |
49628 |
M |
0 |
|
|
0 |
|
|
|
|
47669 |
29716 |
product |
49630 |
M |
0 |
|
|
0 |
|
|
|
|
47674 |
29712 |
product |
49635 |
M |
0 |
|
|
0 |
|
|
|
|
47811 |
29787 |
product |
49772 |
M |
0 |
|
|
0 |
|
|
|
|
49279 |
29758 |
product |
51240 |
M |
0 |
|
|
0 |
|
|
|
|
82460 |
29709 |
product |
84403 |
M |
0 |
|
|