Skip to content

增加按业务自动分表策略 #84

@Soar360

Description

@Soar360

目前,已经有且仅有时间分表策略:TimeShardPolicy 。多租户的情况下,有大量按租户分表的需求,比如按照 UserId 字段分表。

假如 UserId 字段取值是 1000 ,那么对应的日志表就是 : Log_1000 。这代表 Log 表下,必须有 UserId 字段,且整个表的 UserId 字段都是 1000 。

需要新增一个按字段分表策略,需要补充文档和单元测试。

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions