Automatic sharding: part one of many (#194)

Starting automatic sharding
This commit is contained in:
Lev Kokotov
2022-10-25 11:47:41 -07:00
committed by GitHub
parent fa267733d9
commit 0524787d31
5 changed files with 169 additions and 17 deletions

View File

@@ -83,6 +83,9 @@ primary_reads_enabled = true
#
sharding_function = "pg_bigint_hash"
# Automatically parse this from queries and route queries to the right shard!
automatic_sharding_key = "id"
# Credentials for users that may connect to this cluster
[pools.sharded_db.users.0]
username = "sharding_user"