From: | "Andy B" <abhousehuntRE-M--O--V-E(at)blueyonder(dot)co(dot)uk> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Enough RAM for entire Database.. cost aside, is this |
Date: | 2004-07-08 19:19:38 |
Message-ID: | e7hHc.14201$I%1.4466@fe1.news.blueyonder.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Ok, this is very interesting. I had assumed that PG's cache already built up
such in memory structures from the data it gets off disk (aka OS buffer, God
willing).
Which particular DB's out there would be worth checking out for my
particular 'all in RAM scenario'?
(Though I need geographical index support or the ability to add my
own...that was the thing that originally made me look at PG - that and
having tried to use Mysql)
> 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.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-07-08 19:32:59 | Re: Subtransaction syntax in 7.5?? |
Previous Message | Alvaro Herrera | 2004-07-08 19:18:55 | Re: How to filter on timestamps? |