{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.20"
},
"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": 6,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.50",
"eval_cost": "0.60",
"prefix_cost": "2.10",
"data_read_per_join": "96"
},
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.50",
"eval_cost": "0.60",
"prefix_cost": "4.20",
"data_read_per_join": "96"
},
"used_columns": [
"usergroup_id",
"status",
"type"
],
"attached_condition": "(`cscart_db`.`cscart_usergroups`.`status` <> 'D')"
}
}
]
}
}
| link_id | usergroup_id | status | type |
|---|---|---|---|
| 2051884 | 39 | D | C |
| 2047852 | 42 | D | C |
| 8105132 | 51 | A | P |
| 4790205 | 57 | A | C |
| 3992942 | 60 | D | C |
| 1963614 | 63 | A | C |