Query time 0.00133
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "131.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "24.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": 24,
"rows_produced_per_join": 24,
"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 ('8227','8228','8229','8230','8231','4579','4580','4581','4582','4583','4584','3341','3342','3343','3344','3345')))",
"cost_info": {
"read_cost": "44.81",
"eval_cost": "4.80",
"prefix_cost": "49.61",
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "4.80",
"prefix_cost": "78.41",
"data_read_per_join": "18K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "4.80",
"prefix_cost": "107.21",
"data_read_per_join": "14K"
},
"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 |
|
|
|
|
8425 |
3343 |
product |
10390 |
A |
1 |
|
|
0 |
|
|
|
|
17171 |
8227 |
product |
19133 |
A |
1 |
|
|
0 |
|
|
|
|
17173 |
8228 |
product |
19135 |
A |
1 |
|
|
0 |
|
|
|
|
83958 |
4584 |
product |
13362 |
A |
1 |
|
|
0 |
|
|
|
|
8426 |
3343 |
product |
10391 |
A |
2 |
|
|
0 |
|
|
|
|
83959 |
4584 |
product |
13363 |
A |
2 |
|
|
0 |
|
|
|
|
8422 |
3343 |
product |
10387 |
A |
3 |
|
|
0 |
|
|
|
|
17172 |
8228 |
product |
19134 |
A |
3 |
|
|
0 |
|
|
|
|
83960 |
4584 |
product |
13364 |
A |
3 |
|
|
0 |
|
|
|
|
8423 |
3343 |
product |
10388 |
A |
4 |
|
|
0 |
|
|
|
|
8413 |
3341 |
product |
10378 |
A |
10 |
|
|
0 |
|
|
|
|
8418 |
3342 |
product |
10383 |
A |
10 |
|
|
0 |
|
|
|
|
8428 |
3344 |
product |
10393 |
A |
10 |
|
|
0 |
|
|
|
|
8433 |
3345 |
product |
10398 |
A |
10 |
|
|
0 |
|
|
|
|
9807 |
4579 |
product |
11772 |
A |
10 |
|
|
0 |
|
|
|
|
9812 |
4580 |
product |
11777 |
A |
10 |
|
|
0 |
|
|
|
|
9816 |
4582 |
product |
11781 |
A |
10 |
|
|
0 |
|
|
|
|
9822 |
4583 |
product |
11787 |
A |
10 |
|
|
0 |
|
|
|
|
17175 |
8229 |
product |
19137 |
A |
10 |
|
|
0 |
|
|
|
|
17177 |
8230 |
product |
19139 |
A |
10 |
|
|
0 |
|
|
|
|
17179 |
8231 |
product |
19141 |
A |
10 |
|
|
0 |
|
|
|
|
8414 |
3341 |
product |
10379 |
A |
20 |
|
|
0 |
|
|
|
|
8419 |
3342 |
product |
10384 |
A |
20 |
|
|
0 |
|
|
|
|
8429 |
3344 |
product |
10394 |
A |
20 |
|
|
0 |
|
|
|
|
8434 |
3345 |
product |
10399 |
A |
20 |
|
|
0 |
|
|
|
|
9808 |
4579 |
product |
11773 |
A |
20 |
|
|
0 |
|
|
|
|
9817 |
4582 |
product |
11782 |
A |
20 |
|
|
0 |
|
|
|
|
8415 |
3341 |
product |
10380 |
A |
30 |
|
|
0 |
|
|
|
|
8420 |
3342 |
product |
10385 |
A |
30 |
|
|
0 |
|
|
|
|
8430 |
3344 |
product |
10395 |
A |
30 |
|
|
0 |
|
|
|
|
8435 |
3345 |
product |
10400 |
A |
30 |
|
|
0 |
|
|
|
|
9809 |
4579 |
product |
11774 |
A |
30 |
|
|
0 |
|
|
|
|
9813 |
4580 |
product |
11778 |
A |
30 |
|
|
0 |
|
|
|
|
9818 |
4582 |
product |
11783 |
A |
30 |
|
|
0 |
|
|
|
|
9823 |
4583 |
product |
11788 |
A |
30 |
|
|
0 |
|
|
|
|
8416 |
3341 |
product |
10381 |
A |
40 |
|
|
0 |
|
|
|
|
8421 |
3342 |
product |
10386 |
A |
40 |
|
|
0 |
|
|
|
|
8431 |
3344 |
product |
10396 |
A |
40 |
|
|
0 |
|
|
|
|
8436 |
3345 |
product |
10401 |
A |
40 |
|
|
0 |
|
|
|
|
9810 |
4579 |
product |
11775 |
A |
40 |
|
|
0 |
|
|
|
|
9819 |
4582 |
product |
11784 |
A |
40 |
|
|
0 |
|
|
|
|
9820 |
4582 |
product |
11785 |
A |
50 |
|
|