Skip to content

优化sys_operation_log中的索引 #80

@wtune

Description

@wtune

问题

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

1.sys_operation_log.create_time

OperationLogService#getOperationLogs可以看出在查询操作日志的时候会根据create_time来查询,因此需要在create_time字段上添加索引从而加快相关查询效率。

解决方法

在下列字段添加索引
sys_operation_log.create_time

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