Are you an LLM? You can read better optimized documentation at /guide/sharding/mod-cycle.md for this page in Markdown format
Modulo Sharding Algorithm

- Algorithm complexity: O(1)
- Performance: Compared to
org.apache.shardingsphere.sharding.algorithm.sharding.mod.ModShardingAlgorithm, performance is 1200~4000 times higher. And stability is higher, no serious performance degradation occurs.
| PreciseShardingValue | RangeShardingValue |
|---|---|
![]() | ![]() |


