You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i had solved that problem.
but i have a new problem. Data sharding and Read-write splitting how to use together.
i find few document and demo online.i will upload my demo after that i study it.
can u Add me Wechat?
WeChat:278567949
I use sharding-jdbc-spring-boot-starter 3.0.0.M1
i can't find relevent document on the website.
i try some times
but i can't enter implementation Class of RangeShardingAlgorithm.it will enter implementation Class of PreciseShardingAlgorithm.
please tell me how to use it,or give me a demo
this is my config and my code;
yml
config:
sharding:
default-database-strategy:
standard:
range-algorithm-class-name: shardingsphere.demo.strategy.NaahRangeShardingAlgorithm
precise-algorithm-class-name: shardingsphere.demo.strategy.HashCodePreciseShardingAlgorithm
sharding-column: user_id
RangeShardingAlgorithm
public class NaahRangeShardingAlgorithm implements RangeShardingAlgorithm {
}
PreciseShardingAlgorithm
public class HashCodePreciseShardingAlgorithm implements PreciseShardingAlgorithm {
}
The text was updated successfully, but these errors were encountered: