Are you an LLM? You can read better optimized documentation at /guide/sharding/interval-timeline.md for this page in Markdown format
Interval-Based Time Range Sharding Algorithm

- Algorithm complexity: O(1)
- Usability: Supports multiple data types (
Long/LocalDateTime/DATE/String/SnowflakeId), while the official implementation converts to string first then toLocalDateTime, success rate affected by time formatting characters. - Performance: Compared to
org.apache.shardingsphere.sharding.algorithm.sharding.datetime.IntervalShardingAlgorithm, performance is 1200~4000 times higher.
| PreciseShardingValue | RangeShardingValue |
|---|---|
![]() | ![]() |


