Query time 0.00086
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "115.07"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "28.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": [
"object_id",
"idx_object_type_type_position"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 28,
"rows_produced_per_join": 28,
"filtered": "100.00",
"index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'A') and (`cscart_db`.`cscart_images_links`.`object_id` in (3562,34283,10154,3574,38052)))",
"cost_info": {
"read_cost": "31.14",
"eval_cost": "2.80",
"prefix_cost": "33.94",
"data_read_per_join": "2K"
},
"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": [
"cscart_db.cscart_images_links.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.43",
"eval_cost": "2.80",
"prefix_cost": "61.17",
"data_read_per_join": "21K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
]
}
},
{
"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": [
"cscart_db.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.10",
"eval_cost": "2.80",
"prefix_cost": "87.07",
"data_read_per_join": "16K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`cscart_db`.`cscart_common_descriptions`.`object_id` = `cscart_db`.`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 |
|
|
|
|
166959 |
38052 |
product |
168308 |
A |
1 |
|
|
| 0 |
|
|
|
|
214560 |
34283 |
product |
215835 |
A |
1 |
|
|
| 0 |
|
|
|
|
166960 |
38052 |
product |
168309 |
A |
2 |
|
|
| 0 |
|
|
|
|
166961 |
38052 |
product |
168310 |
A |
3 |
|
|
| 0 |
|
|
|
|
166962 |
38052 |
product |
168311 |
A |
4 |
|
|
| 0 |
|
|
|
|
166963 |
38052 |
product |
168312 |
A |
5 |
|
|
| 0 |
|
|
|
|
214573 |
38052 |
product |
215848 |
A |
6 |
|
|
| 0 |
|
|
|
|
46900 |
10154 |
product |
48252 |
A |
9 |
|
|
| 0 |
|
|
|
|
46803 |
3562 |
product |
48155 |
A |
10 |
|
|
| 0 |
|
|
|
|
46901 |
10154 |
product |
48253 |
A |
10 |
|
|
| 0 |
|
|
|
|
46804 |
3562 |
product |
48156 |
A |
11 |
|
|
| 0 |
|
|
|
|
46852 |
3574 |
product |
48204 |
A |
11 |
|
|
| 0 |
|
|
|
|
46902 |
10154 |
product |
48254 |
A |
11 |
|
|
| 0 |
|
|
|
|
46805 |
3562 |
product |
48157 |
A |
12 |
|
|
| 0 |
|
|
|
|
46853 |
3574 |
product |
48205 |
A |
12 |
|
|
| 0 |
|
|
|
|
46903 |
10154 |
product |
48255 |
A |
12 |
|
|
| 0 |
|
|
|
|
46806 |
3562 |
product |
48158 |
A |
13 |
|
|
| 0 |
|
|
|
|
46854 |
3574 |
product |
48206 |
A |
13 |
|
|
| 0 |
|
|
|
|
46904 |
10154 |
product |
48256 |
A |
13 |
|
|
| 0 |
|
|
|
|
46807 |
3562 |
product |
48159 |
A |
14 |
|
|
| 0 |
|
|
|
|
46855 |
3574 |
product |
48207 |
A |
14 |
|
|
| 0 |
|
|
|
|
46808 |
3562 |
product |
48160 |
A |
15 |
|
|
| 0 |
|
|
|
|
46856 |
3574 |
product |
48208 |
A |
15 |
|
|
| 0 |
|
|
|
|
214543 |
10154 |
product |
215818 |
A |
15 |
|
|
| 0 |
|
|
|
|
46809 |
3562 |
product |
48161 |
A |
16 |
|
|
| 0 |
|
|
|
|
46857 |
3574 |
product |
48209 |
A |
16 |
|
|
| 0 |
|
|
|
|
214521 |
3574 |
product |
215796 |
A |
18 |
|
|
| 0 |
|
|
|
|
214531 |
3562 |
product |
215806 |
A |
18 |
|
|