Query time 0.00137
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "116.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "20.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_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": 20,
"rows_produced_per_join": 20,
"filtered": "100.00",
"index_condition": "((`webmarco`.`cscart_images_links`.`object_type` = 'product') and (`webmarco`.`cscart_images_links`.`type` = 'M') and (`webmarco`.`cscart_images_links`.`object_id` in (431542,431543,431544,431545,431546,431547,431548,431549,431550,431551,431680,431677,431678,431679,431681,431682,431683,431684,431685,431686)))",
"cost_info": {
"read_cost": "44.01",
"eval_cost": "4.00",
"prefix_cost": "48.01",
"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": [
"webmarco.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "72.01",
"data_read_per_join": "15K"
},
"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": "108",
"ref": [
"webmarco.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "96.01",
"data_read_per_join": "11K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
]
}
}
]
}
}
}
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 |
produts_img_600__4__sqrt-5w.png |
600 |
600 |
N |
3871134 |
431542 |
product |
1543471 |
M |
0 |
|
1543471 |
0 |
produts_img_600__4__sqrt-5w.png |
600 |
600 |
N |
3871135 |
431543 |
product |
1543471 |
M |
0 |
|
1543471 |
0 |
produts_img_600__4__sqrt-5w.png |
600 |
600 |
N |
3871136 |
431544 |
product |
1543471 |
M |
0 |
|
1543471 |
0 |
produts_img_600__4__sqrt-5w.png |
600 |
600 |
N |
3871137 |
431545 |
product |
1543471 |
M |
0 |
|
1543471 |
0 |
produts_img_600__4__sqrt-5w.png |
600 |
600 |
N |
3871138 |
431546 |
product |
1543471 |
M |
0 |
|
1543471 |
0 |
produts_img_600__4__sqrt-5w.png |
600 |
600 |
N |
3871139 |
431547 |
product |
1543471 |
M |
0 |
|
1543471 |
0 |
produts_img_600__4__sqrt-5w.png |
600 |
600 |
N |
3871140 |
431548 |
product |
1543471 |
M |
0 |
|
1543471 |
0 |
produts_img_600__4__sqrt-5w.png |
600 |
600 |
N |
3871141 |
431549 |
product |
1543471 |
M |
0 |
|
1543471 |
0 |
produts_img_600__4__sqrt-5w.png |
600 |
600 |
N |
3871142 |
431550 |
product |
1543471 |
M |
0 |
|
1543471 |
0 |
produts_img_600__4__sqrt-5w.png |
600 |
600 |
N |
3871143 |
431551 |
product |
1543471 |
M |
0 |
|
1543471 |
0 |
produts_img_600__20__vb6l-nu.png |
600 |
600 |
N |
3871466 |
431677 |
product |
1543496 |
M |
0 |
|
1543496 |
0 |
produts_img_600__20__pxlo-hk.png |
600 |
600 |
N |
3871467 |
431678 |
product |
1543497 |
M |
0 |
|
1543497 |
0 |
produts_img_600__20__ew5j-bq.png |
600 |
600 |
N |
3871468 |
431679 |
product |
1543498 |
M |
0 |
|
1543498 |
0 |
produts_img_600__20__fktq-d8.png |
600 |
600 |
N |
3871469 |
431680 |
product |
1543499 |
M |
0 |
|
1543499 |
0 |
produts_img_600__20__za0o-pk.png |
600 |
600 |
N |
3871470 |
431681 |
product |
1543500 |
M |
0 |
|
1543500 |
0 |
produts_img_600__20__t8yu-2d.png |
600 |
600 |
N |
3871471 |
431682 |
product |
1543501 |
M |
0 |
|
1543501 |
0 |
produts_img_600__20__xlvp-fb.png |
600 |
600 |
N |
3871472 |
431683 |
product |
1543502 |
M |
0 |
|
1543502 |
0 |
produts_img_600__20__wgu3-w2.png |
600 |
600 |
N |
3871473 |
431684 |
product |
1543503 |
M |
0 |
|
1543503 |
0 |
produts_img_600__20__jtw5-h3.png |
600 |
600 |
N |
3871474 |
431685 |
product |
1543504 |
M |
0 |
|
1543504 |
0 |
produts_img_600__20__s54p-6l.png |
600 |
600 |
N |
3871475 |
431686 |
product |
1543505 |
M |
0 |
|
1543505 |