Query time 0.00052
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "34.21"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "ref",
"possible_keys": [
"object_id",
"idx_object_type_type_position"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"ref": [
"const",
"const",
"const"
],
"rows_examined_per_scan": 14,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.59",
"eval_cost": "1.40",
"prefix_cost": "10.99",
"data_read_per_join": "1K"
},
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.80",
"eval_cost": "1.40",
"prefix_cost": "23.20",
"data_read_per_join": "10K"
},
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.61",
"eval_cost": "1.40",
"prefix_cost": "34.21",
"data_read_per_join": "8K"
},
"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 |
|
|
|
|
207901 |
69467 |
product |
209176 |
A |
10 |
|
|
| 0 |
|
|
|
|
207902 |
69467 |
product |
209177 |
A |
20 |
|
|
| 0 |
|
|
|
|
207903 |
69467 |
product |
209178 |
A |
30 |
|
|
| 0 |
|
|
|
|
207904 |
69467 |
product |
209179 |
A |
40 |
|
|
| 0 |
|
|
|
|
207905 |
69467 |
product |
209180 |
A |
50 |
|
|
| 0 |
|
|
|
|
207906 |
69467 |
product |
209181 |
A |
60 |
|
|
| 0 |
|
|
|
|
207907 |
69467 |
product |
209182 |
A |
70 |
|
|
| 0 |
|
|
|
|
207908 |
69467 |
product |
209183 |
A |
80 |
|
|
| 0 |
|
|
|
|
207909 |
69467 |
product |
209184 |
A |
90 |
|
|
| 0 |
|
|
|
|
207910 |
69467 |
product |
209185 |
A |
100 |
|
|
| 0 |
|
|
|
|
207911 |
69467 |
product |
209186 |
A |
110 |
|
|
| 0 |
|
|
|
|
207912 |
69467 |
product |
209187 |
A |
120 |
|
|
| 0 |
|
|
|
|
207913 |
69467 |
product |
209188 |
A |
130 |
|
|
| 0 |
|
|
|
|
207914 |
69467 |
product |
209189 |
A |
140 |
|
|