代码拉取完成,页面将自动刷新
同步操作将从 shopTNT开源商城系统/系统配置中心 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
spring:
#分库分表配置
shardingsphere:
sharding:
tables:
#商品表(用member_id分库,用member_id分表)
es_member:
actual-data-nodes: ds$->{0..1}.es_member$->{0..1}
database-strategy:
inline:
sharding-column: member_id
algorithm-expression: ds$->{member_id% 2}
table-strategy:
inline:
sharding-column: member_id
#因为都是使用同一个字段进行分库分表的所以要右移两位之后取模以保证每个表中的数据平均
algorithm-expression: es_member$->{(member_id>>2)% 2}
#商品表(用member_id分库,用member_id分表)
es_clerk:
actual-data-nodes: ds$->{0..1}.es_clerk$->{0..1}
database-strategy:
inline:
sharding-column: member_id
algorithm-expression: ds$->{member_id% 2}
table-strategy:
inline:
sharding-column: member_id
#因为都是使用同一个字段进行分库分表的所以要右移两位之后取模以保证每个表中的数据平均
algorithm-expression: es_clerk$->{(member_id>>2)% 2}
#es_shop_notice_log
es_shop_notice_log:
actual-data-nodes: ds$->{0..1}.es_shop_notice_log$->{0..1}
database-strategy:
inline:
sharding-column: id
algorithm-expression: ds$->{id % 2}
table-strategy:
inline:
sharding-column: shop_id
algorithm-expression: es_shop_notice_log$->{shop_id % 2}
#es_member_notice_log
es_member_notice_log:
actual-data-nodes: ds$->{0..1}.es_member_notice_log$->{0..1}
database-strategy:
inline:
sharding-column: id
algorithm-expression: ds$->{id % 2}
table-strategy:
inline:
sharding-column: member_id
algorithm-expression: es_member_notice_log$->{member_id % 2}
es_member_wallet:
actual-data-nodes: ds$->{0..1}.es_member_wallet$->{0..1}
database-strategy:
inline:
sharding-column: id
algorithm-expression: ds$->{id % 2}
table-strategy:
inline:
sharding-column: member_id
algorithm-expression: es_member_wallet$->{member_id % 2}
#binding-tables: es_order,es_order_items
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。