Automatic shard detection

This commit is contained in:
Lev Kokotov
2022-09-12 15:07:10 -04:00
parent 075167431d
commit efd6b2edae
5 changed files with 61 additions and 12 deletions

View File

@@ -82,6 +82,7 @@ primary_reads_enabled = true
# sha1: A hashing function based on SHA1
#
sharding_function = "pg_bigint_hash"
sharding_key = "id"
# Credentials for users that may connect to this cluster
[pools.sharded_db.users.0]