From: Rakesh Kumar <rakeshkumar464@aol.com>
To: Matej <gmatej@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PG Sharding
Date: Mon, 29 Jan 2018 11:50:46 -0500
Message-ID: <176B79BB-DF9F-4863-82BE-F4A323F692E1@aol.com> (raw)
In-Reply-To: <CAJB+8maToQO3nnCgJ-giJ6Wsu+210O6rYEP-KWq0RLG_HZnfWQ@mail.gmail.com>
References: <CAJB+8maToQO3nnCgJ-giJ6Wsu+210O6rYEP-KWq0RLG_HZnfWQ@mail.gmail.com>
> On Jan 29, 2018, at 09:34 , Matej <gmatej@gmail.com> wrote:
>
> Hi Everyone.
>
> We are looking at a rather large fin-tech installation. But as scalability requirements are high we look at sharding of-course.
>
> I have looked at many sources for Postgresql sharding, but we are a little confused as to shared with schema or databases or both.
>
>
> So far our understanding:
>
> SCHEMA.
>
> PROS:
> - seems native to PG
> - backup seems easier
> - connection pooling seems easier, as you can use same connection between shard.
>
> CONS:
> - schema changes seems litlle more complicated
> - heard of backup and maintenance problems
> - also some caching problems.
>
> DATABASE:
>
> PROS:
> - schema changes litlle easier
> - backup and administration seems more robust
>
> CONS:
> - heard of vacuum problems
> - connection pooling is hard, as 100 shards would mean 100 pools
>
>
> So what is actually the right approach? If anyone could shed some light on my issue.
From your description it seems your requirement is more of multi tenancy in a non distributed env, rather than distributed Sharding env.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: rakeshkumar464@aol.com, gmatej@gmail.com
Subject: Re: PG Sharding
In-Reply-To: <176B79BB-DF9F-4863-82BE-F4A323F692E1@aol.com>
References: <CAJB+8maToQO3nnCgJ-giJ6Wsu+210O6rYEP-KWq0RLG_HZnfWQ@mail.gmail.com> <176B79BB-DF9F-4863-82BE-F4A323F692E1@aol.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox