Query time 0.00073
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "0.38"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_attachments",
"access_type": "ref",
"possible_keys": [
"object_type",
"type"
],
"key": "object_type",
"used_key_parts": [
"object_type",
"object_id"
],
"key_length": "95",
"ref": [
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "9.98",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.01",
"prefix_cost": "0.35",
"data_read_per_join": "194"
},
"used_columns": [
"attachment_id",
"object_type",
"object_id",
"type",
"position",
"filename",
"filesize",
"usergroup_ids",
"status",
"on_server",
"url"
],
"attached_condition": "((`chocoramo`.`cscart_attachments`.`type` = 'M') and ((`chocoramo`.`cscart_attachments`.`usergroup_ids` = '') or (0 <> find_in_set(0,`chocoramo`.`cscart_attachments`.`usergroup_ids`)) or (0 <> find_in_set(1,`chocoramo`.`cscart_attachments`.`usergroup_ids`))) and (`chocoramo`.`cscart_attachments`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "cscart_attachment_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"attachment_id",
"lang_code"
],
"key_length": "9",
"ref": [
"chocoramo.cscart_attachments.attachment_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.02",
"eval_cost": "0.01",
"prefix_cost": "0.38",
"data_read_per_join": "78"
},
"used_columns": [
"attachment_id",
"lang_code",
"description"
]
}
}
]
}
}
}