Query time 0.00124
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "33.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "14.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": 14,
"rows_produced_per_join": 14,
"filtered": "100.00",
"index_condition": "((`test2_gaseus`.`cscart_images_links`.`object_type` = 'product') and (`test2_gaseus`.`cscart_images_links`.`type` = 'M') and (`test2_gaseus`.`cscart_images_links`.`object_id` in (12610,12615,12620,12612,12613,12609,12611,13098,13104,13103,13102,13101,13100,13099)))",
"cost_info": {
"read_cost": "8.41",
"eval_cost": "1.40",
"prefix_cost": "9.81",
"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": [
"test2_gaseus.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.50",
"eval_cost": "1.40",
"prefix_cost": "14.71",
"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": "108",
"ref": [
"test2_gaseus.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.50",
"eval_cost": "1.40",
"prefix_cost": "19.61",
"data_read_per_join": "8K"
},
"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 |
1381224022-17016_600x600_2x.jpg |
500 |
436 |
N |
12081 |
12609 |
product |
15564 |
M |
0 |
|
15564 |
| 0 |
1381224022-17016_600x600_2x_0he0-zu.jpg |
500 |
436 |
N |
12082 |
12610 |
product |
15565 |
M |
0 |
|
15565 |
| 0 |
1381224022-17016_600x600_2x_a3tf-ba.jpg |
500 |
436 |
N |
12083 |
12611 |
product |
15566 |
M |
0 |
|
15566 |
| 0 |
1381224022-17016_600x600_2x_mu9d-iu.jpg |
500 |
436 |
N |
12084 |
12612 |
product |
15567 |
M |
0 |
|
15567 |
| 0 |
1381224022-17016_600x600_2x_5elx-kb.jpg |
500 |
436 |
N |
12085 |
12613 |
product |
15568 |
M |
0 |
|
15568 |
| 0 |
1381224022-17016_600x600_2x_ti5e-kk.jpg |
500 |
436 |
N |
12087 |
12615 |
product |
15570 |
M |
0 |
|
15570 |
| 0 |
1381224022-17016_600x600_2x_23pi-u4.jpg |
500 |
436 |
N |
12092 |
12620 |
product |
15575 |
M |
0 |
|
15575 |
| 0 |
Seite-17-BS100-300_600x600.jpg |
600 |
400 |
N |
18811 |
13098 |
product |
22292 |
M |
0 |
|
22292 |
| 0 |
Seite-17-BS100-3008ZVTCsvtFi0Fk_600x600.jpg |
600 |
400 |
N |
18812 |
13099 |
product |
22293 |
M |
0 |
|
22293 |
| 0 |
Seite-17-BS100-300iTleWaE9519D9_600x600.jpg |
600 |
400 |
N |
18813 |
13100 |
product |
22294 |
M |
0 |
|
22294 |
| 0 |
Seite-17-BS100-300RqxMC4mCIJWry_600x600.jpg |
600 |
400 |
N |
18814 |
13101 |
product |
22295 |
M |
0 |
|
22295 |
| 0 |
Seite-17-BS100-300EZoXamPd5rIqQ_600x600.jpg |
600 |
400 |
N |
18815 |
13102 |
product |
22296 |
M |
0 |
|
22296 |
| 0 |
Seite-17-BS100-300nID9u0XVsw3S7_600x600.jpg |
600 |
400 |
N |
18816 |
13103 |
product |
22297 |
M |
0 |
|
22297 |
| 0 |
Seite-17-BS100-300xxH2swgRzfxLa_600x600.jpg |
600 |
400 |
N |
18817 |
13104 |
product |
22298 |
M |
0 |
|
22298 |