Query time 0.00136
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "164.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "31.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": 31,
"rows_produced_per_join": 31,
"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 ('50214','45834','45835','45836','45837','45838','45839','45840','45844','45845','45846','45847','45849','45850','45851','45852')))",
"cost_info": {
"read_cost": "53.21",
"eval_cost": "6.20",
"prefix_cost": "59.41",
"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": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "31.00",
"eval_cost": "6.20",
"prefix_cost": "96.61",
"data_read_per_join": "23K"
},
"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": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "31.00",
"eval_cost": "6.20",
"prefix_cost": "133.81",
"data_read_per_join": "18K"
},
"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 |
|
|
|
|
73494 |
45834 |
product |
75445 |
A |
1 |
|
|
0 |
|
|
|
|
73503 |
45835 |
product |
75454 |
A |
1 |
|
|
0 |
|
|
|
|
73519 |
45838 |
product |
75470 |
A |
1 |
|
|
0 |
|
|
|
|
73538 |
45844 |
product |
75489 |
A |
1 |
|
|
0 |
|
|
|
|
73539 |
45845 |
product |
75490 |
A |
1 |
|
|
0 |
|
|
|
|
73544 |
45846 |
product |
75494 |
A |
1 |
|
|
0 |
|
|
|
|
73556 |
45847 |
product |
75507 |
A |
1 |
|
|
0 |
|
|
|
|
73561 |
45849 |
product |
75512 |
A |
1 |
|
|
0 |
|
|
|
|
73573 |
45851 |
product |
75524 |
A |
1 |
|
|
0 |
|
|
|
|
73580 |
45852 |
product |
75531 |
A |
1 |
|
|
0 |
|
|
|
|
76036 |
45839 |
product |
77979 |
A |
1 |
|
|
0 |
|
|
|
|
81115 |
50214 |
product |
83058 |
A |
1 |
|
|
0 |
|
|
|
|
85895 |
45840 |
product |
83627 |
A |
1 |
|
|
0 |
|
|
|
|
73495 |
45834 |
product |
75446 |
A |
2 |
|
|
0 |
|
|
|
|
73511 |
45837 |
product |
75462 |
A |
2 |
|
|
0 |
|
|
|
|
73520 |
45838 |
product |
75471 |
A |
2 |
|
|
0 |
|
|
|
|
73540 |
45845 |
product |
75491 |
A |
2 |
|
|
0 |
|
|
|
|
73543 |
45846 |
product |
75495 |
A |
2 |
|
|
0 |
|
|
|
|
73555 |
45847 |
product |
75506 |
A |
2 |
|
|
0 |
|
|
|
|
73562 |
45849 |
product |
75513 |
A |
2 |
|
|
0 |
|
|
|
|
73570 |
45850 |
product |
75521 |
A |
2 |
|
|
0 |
|
|
|
|
73572 |
45851 |
product |
75523 |
A |
2 |
|
|
0 |
|
|
|
|
73581 |
45852 |
product |
75532 |
A |
2 |
|
|
0 |
|
|
|
|
76037 |
45839 |
product |
77980 |
A |
2 |
|
|
0 |
|
|
|
|
73504 |
45835 |
product |
75455 |
A |
3 |
|
|
0 |
|
|
|
|
73513 |
45837 |
product |
75464 |
A |
3 |
|
|
0 |
|
|
|
|
73541 |
45845 |
product |
75492 |
A |
3 |
|
|
0 |
|
|
|
|
73542 |
45846 |
product |
75493 |
A |
3 |
|
|
0 |
|
|
|
|
73557 |
45847 |
product |
75509 |
A |
3 |
|
|
0 |
|
|
|
|
73563 |
45849 |
product |
75514 |
A |
3 |
|
|
0 |
|
|
|
|
73571 |
45850 |
product |
75522 |
A |
3 |
|
|
0 |
|
|
|
|
73575 |
45851 |
product |
75526 |
A |
3 |
|
|
0 |
|
|
|
|
73582 |
45852 |
product |
75533 |
A |
3 |
|
|
0 |
|
|
|
|
76038 |
45839 |
product |
77981 |
A |
3 |
|
|
0 |
|
|
|
|
73547 |
45846 |
product |
75498 |
A |
4 |
|
|
0 |
|
|
|
|
73577 |
45851 |
product |
75528 |
A |
4 |
|
|
0 |
|
|
|
|
76039 |
45839 |
product |
77982 |
A |
4 |
|
|
0 |
|
|
|
|
73550 |
45846 |
product |
75501 |
A |
5 |
|
|
0 |
|
|
|
|
73579 |
45851 |
product |
75530 |
A |
5 |
|
|