pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Ranaldi <alexranaldi@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Building a DB with performance in mind
Date: Thu, 17 Mar 2005 10:56:10 -0500
Message-ID: <c7c05762050317075614cc0bfe@mail.gmail.com> (raw)

Greetings everyone,

I am about to migrate to Postgres from MySQL. My DB isn't enormous (<
1gb), consists mostly of just text, but is accessed quite heavily.
Because size isn't a huge issue, but performance is, I am willing to
normalize as necessary.

Currently I have a table "Entries" containing 500k rows. The table
contains many text columns, and a few others:
EntryID (unique, indexed)
UserID (references "Users" table, indexed)
Private (boolean. indexed)

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?

I appreciate any feedback. I'm certainly not a DB design expert. :)

Thanks,
Alex



view thread (3+ messages)  latest in thread

Message-ID: <c7c05762050317075614cc0bfe@mail.gmail.com>
Permalink:  ../c7c05762050317075614cc0bfe@mail.gmail.com/
Also on:    postgresql.org/message-id/c7c05762050317075614cc0bfe@mail.gmail.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: alexranaldi@gmail.com
  Subject: Re: Building a DB with performance in mind
  In-Reply-To: <c7c05762050317075614cc0bfe@mail.gmail.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