{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2.80"
},
"nested_loop": [
{
"table": {
"table_name": "lnk",
"access_type": "ref",
"possible_keys": [
"user_id"
],
"key": "user_id",
"used_key_parts": [
"user_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.40",
"prefix_cost": "1.40",
"data_read_per_join": "64"
},
"used_columns": [
"link_id",
"user_id",
"usergroup_id",
"status"
]
}
},
{
"table": {
"table_name": "cscart_usergroups",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"status"
],
"key": "PRIMARY",
"used_key_parts": [
"usergroup_id"
],
"key_length": "3",
"ref": [
"cscart_db.lnk.usergroup_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.40",
"prefix_cost": "2.80",
"data_read_per_join": "64"
},
"used_columns": [
"usergroup_id",
"status",
"type"
],
"attached_condition": "(`cscart_db`.`cscart_usergroups`.`status` <> 'D')"
}
}
]
}
}
| link_id | usergroup_id | status | type |
|---|---|---|---|
| 8122724 | 39 | A | C |
| 8105439 | 42 | A | C |
| 8123905 | 57 | A | C |
| 8331370 | 60 | A | C |
| 8367904 | 80 | A | C |