Re: Building a DB with performance in mind - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: Building a DB with performance in mind
Date
Msg-id 20050317160934.GB16434@uio.no
Whole thread Raw
In response to Building a DB with performance in mind  (Alexander Ranaldi <alexranaldi@gmail.com>)
List pgsql-performance
On Thu, Mar 17, 2005 at 10:56:10AM -0500, Alexander Ranaldi wrote:
> Most of my queries return rows based on UserID, and also only if
> Private is FALSE. Would it be in the interest of best performance to
> split this table into two tables: "EntriesPrivate",
> "EntriesNotPrivate" and remove the "Private" column?

You could do a partial index if you'd like (ie. one only indexing rows where
Private=FALSE), but I'm not sure if it's the best solution.

/* Steinar */
--
Homepage: http://www.sesse.net/

pgsql-performance by date:

Previous
From: Alexander Ranaldi
Date:
Subject: Building a DB with performance in mind
Next
From: John Arbash Meinel
Date:
Subject: Re: Building a DB with performance in mind