create table sys_user_role(user_id bigint not null ,role_id bigint not null ,primary key(user_id,role_id)); select user_id from where role_id=xx; select role_id from where user_id=xx; 假设我有这样一个表,两条查询语句,这种情况是创建单表好,还是以user_id创建分区,在以role_id创建二级索引好?
PolarDB-X假设我有这样一个表,两条查询语句,这种情况是创建单表好吗?[阿里云PolarDB]
「点点赞赏,手留余香」
还没有人赞赏,快来当第一个赞赏的人吧!