Re: Database cluster? - Mailing list pgsql-general

From Tim Kientzle
Subject Re: Database cluster?
Date
Msg-id 3A26F8FE.FF6439AC@acm.org
Whole thread Raw
In response to Database cluster?  ("Gordan Bobic" <gordan@freeuk.com>)
List pgsql-general
> > > > I am considering splitting the database into
> > > > tables residing on separate machines, and connect
> > > > them on one master node.
> >
> > Splitting tables across multiple machines would do
> > nothing more than make the entire system run at a
> > snail's pace . . . because you just couldn't move
> > data between machines quickly enough.
>
> In my case, queries typically return ... [a]round 100
> records at most. [E]ven over 10 Mb ethernet, it would
> take at most about a second to transfer. This is a
> much smaller delay than the query time itself, which
> can take 10 seconds or more.
>
> So, splitting the data in such a way that one table is
> queried, and then tables joined from it are queried in
> parallel, would cause a signifficant speed-up.

Then do exactly that: run separate PostgreSQL databases on
multiple machines and build a data abstraction layer that
does the join manually.  If there really are only small
numbers of rows, then it's just as fast to transfer the
data to your application machine as to transfer it all
to a common PostgreSQL machine and then to your application.

If you really need application transparency, then things get
a bit uglier; it shouldn't be too hard to build your own
middleware layer that lets you treat the data storage as
a single entity.

        - Tim

pgsql-general by date:

Previous
From: "Valter Mazzola"
Date:
Subject: Re: Database cluster?
Next
From: GH
Date:
Subject: Re: [HACKERS] Re: PHPBuilder article -- Postgres vs MySQL