Re: Enough RAM for entire Database.. cost aside, is this

From: Marc Slemko <identd(at)gmail(dot)com>
To: Shridhar Daithankar <shridhar(at)frodo(dot)hserus(dot)net>
Cc: Andy B <abhousehuntre-m--o--v-e(at)blueyonder(dot)co(dot)uk>, pgsql-general(at)postgresql(dot)org
Subject: Re: Enough RAM for entire Database.. cost aside, is this
Date: 2004-07-08 17:00:21
Message-ID: 96624965040708100068b73019@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 08 Jul 2004 14:27:29 +0530, Shridhar Daithankar
<shridhar(at)frodo(dot)hserus(dot)net> wrote:

> - Postgresql or no postgresql, OS has to manage buffer cache. Why duplicate the
> efforts which somebody is already better at? If OS improves, everybody benefits.
> I can recall quite a few posts benefitting from moving to 2.6.x kernel from 2.4.x.

One big reason why a large memory space to cache things in your
database server can be beneficial is that it allows for some sometimes
very effective on the fly optimizations to use data structures
designed around in-memory access instead of on-disk access.

Anything in the OS's buffer cache must be represented in the on-disk format.

There are a variety of highly specialized databases that are designed
around being able to build certain structures such as indexes in
memory, and their claim to fame is being much faster for certain types
of queries on in-memory databases. There are many commodity databases
such as innodb that can do things such as build, on the fly, an in
memory hash of a btree index (or a range from a btree index) if
queries are frequently doing lookups that could benefit from it.

As the cost of having large quantities of data present in main memory
drops, postgresql's approach makes it hard to adopt significant
optimizations that minimize the difference between algorithms designed
for in-memory database access and disk based access.

How postgresql approaches these things isn't a bad way, and works
quite well for many people and does allow more effort to be focused in
other areas, but it still is a limitation in certain use cases.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message wespvp 2004-07-08 17:27:10 Re: enable thready safety on Mac OS X 10.3.4
Previous Message Robert Treat 2004-07-08 16:39:56 Re: Column name 'user' not allowed?