Query time 0.00081
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "163.75"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "41.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": 41,
"rows_produced_per_join": 41,
"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 (69315,37875,67031,32148,39002,37876,66388,70280)))",
"cost_info": {
"read_cost": "44.41",
"eval_cost": "4.10",
"prefix_cost": "48.51",
"data_read_per_join": "3K"
},
"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": 41,
"filtered": "100.00",
"cost_info": {
"read_cost": "34.26",
"eval_cost": "4.10",
"prefix_cost": "86.87",
"data_read_per_join": "31K"
},
"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": 41,
"filtered": "100.00",
"cost_info": {
"read_cost": "31.77",
"eval_cost": "4.10",
"prefix_cost": "122.75",
"data_read_per_join": "24K"
},
"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 |
|
|
|
|
125755 |
32148 |
product |
127107 |
A |
1 |
|
|
| 0 |
|
|
|
|
166223 |
37875 |
product |
167572 |
A |
1 |
|
|
| 0 |
|
|
|
|
166227 |
37876 |
product |
167576 |
A |
1 |
|
|
| 0 |
|
|
|
|
170337 |
39002 |
product |
171686 |
A |
1 |
|
|
| 0 |
|
|
|
|
181511 |
66388 |
product |
182857 |
A |
1 |
|
|
| 0 |
|
|
|
|
186045 |
67031 |
product |
187391 |
A |
1 |
|
|
| 0 |
|
|
|
|
205499 |
69315 |
product |
206783 |
A |
1 |
|
|
| 0 |
|
|
|
|
215286 |
70280 |
product |
216561 |
A |
1 |
|
|
| 0 |
|
|
|
|
125756 |
32148 |
product |
127108 |
A |
2 |
|
|
| 0 |
|
|
|
|
166224 |
37875 |
product |
167573 |
A |
2 |
|
|
| 0 |
|
|
|
|
166228 |
37876 |
product |
167577 |
A |
2 |
|
|
| 0 |
|
|
|
|
173279 |
39002 |
product |
174625 |
A |
2 |
|
|
| 0 |
|
|
|
|
181512 |
66388 |
product |
182858 |
A |
2 |
|
|
| 0 |
|
|
|
|
186046 |
67031 |
product |
187392 |
A |
2 |
|
|
| 0 |
|
|
|
|
205500 |
69315 |
product |
206784 |
A |
2 |
|
|
| 0 |
|
|
|
|
215287 |
70280 |
product |
216562 |
A |
2 |
|
|
| 0 |
|
|
|
|
166225 |
37875 |
product |
167574 |
A |
3 |
|
|
| 0 |
|
|
|
|
181513 |
66388 |
product |
182859 |
A |
3 |
|
|
| 0 |
|
|
|
|
186047 |
67031 |
product |
187393 |
A |
3 |
|
|
| 0 |
|
|
|
|
205504 |
69315 |
product |
206788 |
A |
3 |
|
|
| 0 |
|
|
|
|
214360 |
32148 |
product |
215635 |
A |
3 |
|
|
| 0 |
|
|
|
|
214466 |
37876 |
product |
215741 |
A |
3 |
|
|
| 0 |
|
|
|
|
215288 |
70280 |
product |
216563 |
A |
3 |
|
|
| 0 |
|
|
|
|
181514 |
66388 |
product |
182860 |
A |
4 |
|
|
| 0 |
|
|
|
|
186048 |
67031 |
product |
187394 |
A |
4 |
|
|
| 0 |
|
|
|
|
205501 |
69315 |
product |
206785 |
A |
4 |
|
|
| 0 |
|
|
|
|
214465 |
37875 |
product |
215740 |
A |
4 |
|
|
| 0 |
|
|
|
|
215289 |
70280 |
product |
216564 |
A |
4 |
|
|
| 0 |
|
|
|
|
181515 |
66388 |
product |
182861 |
A |
5 |
|
|
| 0 |
|
|
|
|
186049 |
67031 |
product |
187395 |
A |
5 |
|
|
| 0 |
|
|
|
|
205502 |
69315 |
product |
206786 |
A |
5 |
|
|
| 0 |
|
|
|
|
215290 |
70280 |
product |
216565 |
A |
5 |
|
|
| 0 |
|
|
|
|
181516 |
66388 |
product |
182862 |
A |
6 |
|
|
| 0 |
|
|
|
|
186050 |
67031 |
product |
187396 |
A |
6 |
|
|
| 0 |
|
|
|
|
205503 |
69315 |
product |
206787 |
A |
6 |
|
|
| 0 |
|
|
|
|
215291 |
70280 |
product |
216566 |
A |
6 |
|
|
| 0 |
|
|
|
|
181517 |
66388 |
product |
182863 |
A |
7 |
|
|
| 0 |
|
|
|
|
186051 |
67031 |
product |
187397 |
A |
7 |
|
|
| 0 |
|
|
|
|
205505 |
69315 |
product |
206789 |
A |
7 |
|
|
| 0 |
|
|
|
|
215292 |
70280 |
product |
216567 |
A |
7 |
|
|
| 0 |
|
|
|
|
205507 |
69315 |
product |
206791 |
A |
8 |
|
|