Query time 0.00195
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "228.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "41.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": 41,
"rows_produced_per_join": 41,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') and (`portal`.`q_images_links`.`object_id` in ('40744','40745','40758','40759','40761','40768','40769','40770','40776','40788','40789','40790','40791','40792','40793','40794','40795','40796','40809','40821','40827','40828','40829','40830','40831','40832','40833','40834','40835','40836','40837','40839')))",
"cost_info": {
"read_cost": "81.21",
"eval_cost": "8.20",
"prefix_cost": "89.41",
"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": 41,
"filtered": "100.00",
"cost_info": {
"read_cost": "41.00",
"eval_cost": "8.20",
"prefix_cost": "138.61",
"data_read_per_join": "31K"
},
"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": 41,
"filtered": "100.00",
"cost_info": {
"read_cost": "41.00",
"eval_cost": "8.20",
"prefix_cost": "187.81",
"data_read_per_join": "24K"
},
"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 |
|
|
|
|
65952 |
40794 |
product |
67903 |
A |
1 |
|
|
0 |
|
|
|
|
65957 |
40793 |
product |
67908 |
A |
1 |
|
|
0 |
|
|
|
|
65965 |
40791 |
product |
67916 |
A |
1 |
|
|
0 |
|
|
|
|
65998 |
40792 |
product |
67949 |
A |
1 |
|
|
0 |
|
|
|
|
66004 |
40795 |
product |
67955 |
A |
1 |
|
|
0 |
|
|
|
|
66207 |
40821 |
product |
68158 |
A |
1 |
|
|
0 |
|
|
|
|
66571 |
40768 |
product |
68522 |
A |
1 |
|
|
0 |
|
|
|
|
66574 |
40769 |
product |
68525 |
A |
1 |
|
|
0 |
|
|
|
|
66597 |
40776 |
product |
68548 |
A |
1 |
|
|
0 |
|
|
|
|
66627 |
40788 |
product |
68578 |
A |
1 |
|
|
0 |
|
|
|
|
66629 |
40789 |
product |
68580 |
A |
1 |
|
|
0 |
|
|
|
|
66638 |
40827 |
product |
68589 |
A |
1 |
|
|
0 |
|
|
|
|
66642 |
40828 |
product |
68593 |
A |
1 |
|
|
0 |
|
|
|
|
66645 |
40829 |
product |
68596 |
A |
1 |
|
|
0 |
|
|
|
|
66651 |
40831 |
product |
68602 |
A |
1 |
|
|
0 |
|
|
|
|
66655 |
40833 |
product |
68606 |
A |
1 |
|
|
0 |
|
|
|
|
66661 |
40831 |
product |
68612 |
A |
1 |
|
|
0 |
|
|
|
|
66663 |
40834 |
product |
68614 |
A |
1 |
|
|
0 |
|
|
|
|
66669 |
40832 |
product |
68620 |
A |
1 |
|
|
0 |
|
|
|
|
66673 |
40835 |
product |
68624 |
A |
1 |
|
|
0 |
|
|
|
|
66675 |
40836 |
product |
68626 |
A |
1 |
|
|
0 |
|
|
|
|
66679 |
40837 |
product |
68630 |
A |
1 |
|
|
0 |
|
|
|
|
66686 |
40839 |
product |
68637 |
A |
1 |
|
|
0 |
|
|
|
|
66738 |
40761 |
product |
68689 |
A |
1 |
|
|
0 |
|
|
|
|
65966 |
40791 |
product |
67917 |
A |
2 |
|
|
0 |
|
|
|
|
66208 |
40821 |
product |
68159 |
A |
2 |
|
|
0 |
|
|
|
|
68337 |
40776 |
product |
70288 |
A |
2 |
|
|
0 |
|
|
|
|
66209 |
40821 |
product |
68160 |
A |
3 |
|
|
0 |
|
|
|
|
68338 |
40776 |
product |
70289 |
A |
3 |
|
|