Re: Building a DB with performance in mind

From: Steinar H. Gunderson
Subject: Re: Building a DB with performance in mind
Date: ,
Msg-id: 20050317160934.GB16434@uio.no
(view: Whole thread, Raw)
In response to: Building a DB with performance in mind  (Alexander Ranaldi)
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:

From: Michael Fuhr
Date:
Subject: Re: cpu_tuple_cost
From: Hannu Krosing
Date:
Subject: Re: One tuple per transaction