List of known D1 bindings
Round-robin counter for allocation
Optional
shardGeographic locations of each shard
Statistics for each shard
Current allocation strategy
round-robin
- distributes keys evenly across shards
random
- selects a random shard for each key
hash
- uses a hash function to determine shard based on primary key (default)
location
- selects shards based on geographic proximity to reduce latency
Can also be a mixed strategy object with separate read/write strategies
Optional
targetTarget region for location-based allocation
Durable Object state for shard coordination