Automatic sharding for SELECT v2 (#337)

* More comprehensive read sharding support

* A few fixes

* fq

* comment

* wildcard
This commit is contained in:
Lev Kokotov
2023-03-02 00:53:31 -05:00
committed by GitHub
parent 02839e4dc2
commit c3eaf023c7
3 changed files with 193 additions and 29 deletions

View File

@@ -102,7 +102,7 @@ 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"
automatic_sharding_key = "data.id"
# Idle timeout can be overwritten in the pool
idle_timeout = 40000