pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Francisco Reyes <lists@stringsutils.com>
To: PostgreSQL performance <pgsql-performance@postgresql.org>
Subject: Small table or partial index?
Date: Fri, 02 Dec 2005 18:28:09 -0500
Message-ID: <cone.1133566089.411630.45838.5001@35st-server.simplicato.com> (raw)

I am in the process of designing a new system.
There will be a long list of words such as

-word table
word_id integer
word varchar
special boolean

Some "special" words are used to determine if some work is to be done and 
will be what we care the most for one type of operation. 

Will it be more effective to have a partial index 'where is special' or to 
copy those special emails to their own table?

The projected number of non special words is in the millions while the 
special ones will be in the thousands at most (under 10K for sure).

My personal view is that performance should be pretty much equal, but one of 
 my co-worker's believes that the smaller table would likely get cached by 
the OS since it would be used so frequently and would perform better.

In both instances we would be hitting an index of exactly the same size.

The searches will be 'where word = <variable> and is special' 




view thread (3+ messages)  latest in thread

Message-ID: <cone.1133566089.411630.45838.5001@35st-server.simplicato.com>
Permalink:  ../cone.1133566089.411630.45838.5001@35st-server.simplicato.com/
Also on:    postgresql.org/message-id/cone.1133566089.411630.45838.5001@35st-server.simplicato.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: lists@stringsutils.com
  Subject: Re: Small table or partial index?
  In-Reply-To: <cone.1133566089.411630.45838.5001@35st-server.simplicato.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