Query time 0.00139
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "178.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 ('2734','2735','2694','2695','2696','2697','2698','2699','2700','2701','2675','2676','2677','2678','2679','2680','2681','2682','2683','2684','2685','2686','2687','2688','2689','2607','2608','2609','2610','2611')))",
"cost_info": {
"read_cost": "67.21",
"eval_cost": "6.20",
"prefix_cost": "73.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.detailed_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": "110.61",
"data_read_per_join": "23K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
}
},
{
"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": "147.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 |
61NJCJvdumL._AC_SL1080_.jpg |
867 |
725 |
N |
81602 |
2695 |
product |
83545 |
A |
1 |
|
83545 |
0 |
chloe-w-edt-90ml200ml-bl-set-chlgsw017.jpg |
800 |
800 |
N |
81605 |
2701 |
product |
83548 |
A |
1 |
|
83548 |
0 |
chloƩ-fleur-de-parfum-eau-de-parfum-20ml-spray.jpg |
398 |
425 |
N |
81704 |
2696 |
product |
83647 |
A |
1 |
|
83647 |
0 |
544517ccc22ac1c662000048.jpg |
826 |
552 |
N |
81705 |
2698 |
product |
83648 |
A |
1 |
|
83648 |
0 |
Chloe-Love-Story-Eau-de-Toilette-50-ml-for-Woman-3614220724324.jpg |
500 |
500 |
N |
81706 |
2699 |
product |
83649 |
A |
1 |
|
83649 |
0 |
item_XL_26978247_56662909.jpg |
192 |
480 |
N |
6012 |
2675 |
product |
7983 |
A |
10 |
|
7983 |
0 |
memo-eau-de-memo.jpg |
470 |
609 |
N |
6015 |
2677 |
product |
7986 |
A |
10 |
|
7986 |
0 |
02_1526.jpg |
990 |
1526 |
N |
6019 |
2680 |
product |
7990 |
A |
10 |
|
7990 |
0 |
3614220449555.png |
470 |
616 |
N |
6042 |
2694 |
product |
8013 |
A |
10 |
|
8013 |
0 |
61-9uJExrWL._AC_SL1500_.jpg |
1347 |
830 |
N |
81601 |
2694 |
product |
83544 |
A |
11 |
|
83544 |