Query time 0.00093
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "21.60"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "ref",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"ref": [
"const",
"const",
"const"
],
"rows_examined_per_scan": 6,
"rows_produced_per_join": 6,
"filtered": "100.00",
"index_condition": "((`db_emaika1`.`cscart_images_links`.`object_id` <=> '4') and (`db_emaika1`.`cscart_images_links`.`object_type` <=> 'product') and (`db_emaika1`.`cscart_images_links`.`type` <=> 'A'))",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "1.20",
"prefix_cost": "7.20",
"data_read_per_join": "576"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "cscart_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"db_emaika1.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "1.20",
"prefix_cost": "14.40",
"data_read_per_join": "4K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(cscart_images), (`db_emaika1`.`cscart_images_links`.`detailed_id` = `db_emaika1`.`cscart_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "cscart_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"db_emaika1.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "1.20",
"prefix_cost": "21.60",
"data_read_per_join": "3K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`db_emaika1`.`cscart_common_descriptions`.`object_id` = `db_emaika1`.`cscart_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 |
pigment_002.jpg |
1106 |
900 |
N |
132 |
4 |
product |
1474 |
A |
3 |
|
1474 |
0 |
pigment_003.jpg |
1007 |
900 |
N |
134 |
4 |
product |
1476 |
A |
5 |
|
1476 |
0 |
pigment_004.jpg |
1013 |
900 |
N |
136 |
4 |
product |
1478 |
A |
7 |
|
1478 |
0 |
pigment_005.jpg |
1063 |
900 |
N |
138 |
4 |
product |
1480 |
A |
9 |
|
1480 |
0 |
pigment_006.jpg |
947 |
900 |
N |
140 |
4 |
product |
1482 |
A |
11 |
|
1482 |
0 |
pigment_007.jpg |
989 |
900 |
N |
142 |
4 |
product |
1484 |
A |
13 |
|
1484 |
0 |
pigment_008.jpg |
985 |
900 |
N |
144 |
4 |
product |
1486 |
A |
15 |
|
1486 |
0 |
pigment_009.jpg |
977 |
900 |
N |
146 |
4 |
product |
1488 |
A |
17 |
|
1488 |
0 |
pigment_010.jpg |
667 |
900 |
N |
148 |
4 |
product |
1490 |
A |
19 |
|
1490 |
0 |
pigment_011.jpg |
900 |
900 |
N |
198 |
4 |
product |
1541 |
A |
20 |
Покраска ткани пигментная. |
1541 |
0 |
pigment_012.jpg |
741 |
900 |
N |
199 |
4 |
product |
1542 |
A |
21 |
Покраска майки методом пигмент. |
1542 |