Skip site navigation (1) Skip section navigation (2)

Re: caching complete table for optimizing search ?

From: "Johnson, Heather" <HJohnson(at)nypost(dot)com>
To: "Albrecht Berger " <berger1517(at)gmx(dot)ch>,<pgsql-admin-owner(at)postgresql(dot)org>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: caching complete table for optimizing search ?
Date: 2004-10-27 20:17:05
Message-ID: 2563CFA30A899A44BEFF5BC0CB030F7617FC10@NYPEXCH01.NYPOST (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
I'm not sure what to do to cache a single table, but we use a tool called memcached to accomplish what you are describing. Memcached will cache the db in RAM, allowing you to do all of your reads from memory. Writes are  more expensive, because you have to write to the db and to the cache, but if you have a db that it mostly getting selected against, and performance is a concern, this might be a good solution. You can get more info about memcached at:

Heather Johnson
Senior Database Programmer
New York Post

-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org
To: pgsql-admin(at)postgresql(dot)org
Sent: 10/27/2004 12:57 PM
Subject: [ADMIN] caching complete table for optimizing search ?


I'm running a search query on a table with approximately 120.000 rows
(3848 relpages, dbsize tablesize 30MB).

Because of poor performance I would like to cache the complete table in 
memory, but I'm not sure which config param I have to use to accomplish 
The other tables in the db are rather small.

What configuration values are best for this kind of database ?

Postgres 8.0beta2 on a
RedHat-Linux with
Pentium Celeron 1500


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
      message can get through to the mailing list cleanly


pgsql-admin by date

Next:From: Lee WuDate: 2004-10-28 02:04:36
Subject: pg_ctl stop -m fast
Previous:From: Albrecht BergerDate: 2004-10-27 16:57:39
Subject: caching complete table for optimizing search ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group