Skip to content

优化sys_role中的索引 #88

Description

@wtune

问题

表sys_role中缺少一些需要的索引,通过测试,我们发现加上这些索引可以极大地提高相关查询的性能(高达80%),需要添加的索引分别如下所示:

1.sys_role.sort

从RoleMapper可以看出在查询sys_role时常用sort作为排序依据,因此需要在该字段添加索引提升相关查询的性能。

解决方法

在下列字段添加索引
sys_role.sort

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions