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_menu中缺少一些需要的索引,通过测试,我们发现加上这些索引可以极大地提高相关查询的性能(高达80%),需要添加的索引和影响的查询分别如下所示:
从MenuMapper#getMenusLikePcodes和MenuMapper#selectMenus中可以看出,code字段经常在表连接和查询的时候使用到,将该字段设为索引可以极大地加快相关查询的速度。
从MenuMapper中可以看出经常会使用status+levels的查询条件来查询sys_menu,给这两个字段添加联合索引可以提升相关查询的性能。
在下列字段添加索引 sys_menu.code sys_menu.(status,levels)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题
表sys_menu中缺少一些需要的索引,通过测试,我们发现加上这些索引可以极大地提高相关查询的性能(高达80%),需要添加的索引和影响的查询分别如下所示:
1.sys_menu.code
从MenuMapper#getMenusLikePcodes和MenuMapper#selectMenus中可以看出,code字段经常在表连接和查询的时候使用到,将该字段设为索引可以极大地加快相关查询的速度。
2.sys_menu.(status,levels)
从MenuMapper中可以看出经常会使用status+levels的查询条件来查询sys_menu,给这两个字段添加联合索引可以提升相关查询的性能。
解决方法
在下列字段添加索引
sys_menu.code
sys_menu.(status,levels)
The text was updated successfully, but these errors were encountered: