We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
表sys_relation中缺少一些需要的索引,通过测试,我们发现加上这些索引可以极大地提高相关查询的性能(高达80%),需要添加的索引分别如下所示:
从Relation可以看出sys_relation表中的role_id和menu_id本质上是外键(分别为sys_role和sys_menu的主键),经常作为查询或连接的条件,如MenuMapper所示,因此需要在这些字段上添加索引。
原因同上。
在下列字段添加索引 sys_relation.role_id sys_relation.menu_id
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题
表sys_relation中缺少一些需要的索引,通过测试,我们发现加上这些索引可以极大地提高相关查询的性能(高达80%),需要添加的索引分别如下所示:
1.sys_relation.role_id
从Relation可以看出sys_relation表中的role_id和menu_id本质上是外键(分别为sys_role和sys_menu的主键),经常作为查询或连接的条件,如MenuMapper所示,因此需要在这些字段上添加索引。
2.sys_relation.menu_id
原因同上。
解决方法
在下列字段添加索引
sys_relation.role_id
sys_relation.menu_id
The text was updated successfully, but these errors were encountered: