what is a good way to horizontal shard in postgresql

后端 未结 4 997
感情败类
感情败类 2020-12-23 02:24

what is a good way to horizontal shard in postgresql

1. pgpool 2
2. gridsql

which is a better way to use sharding

also is it possibl

4条回答
  •  星月不相逢
    2020-12-23 03:07

    Best practice to achieve PostgreSQL cluster is using:

    1. PostgreSQL Partition (range or list).
    2. Combine PostgreSQL partition and tablespace in several SSD.
    3. PostgreSQL FDW extension.

    Alternative: Postgres-XL

    For Sharding (loadbalance) you can use:

    1. Postgres-BDR
    2. Postgres-X2

    Note:

    Cluster purpose is contain big dataset and mostly for data warehouse.

    Sharding purpose is for loadbalance and mostly used for high-transaction database.

    ** WARNING **

    avoid pgpool because too many overhead that will lead issue in the future.

    Hope this answer will help you in future development.

提交回复
热议问题