pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Miles Keaton <mileskeaton@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: would number of fields in a table affect search-query time?
Date: Mon, 4 Oct 2004 19:06:33 -0700
Message-ID: <200410041906.33483.josh@agliodbs.com> (raw)
In-Reply-To: <59b2d39b0410041627d405f39@mail.gmail.com>
References: <59b2d39b0410041627d405f39@mail.gmail.com>

Miles,

> would the number of fields in a table significantly affect the
> search-query time?

Yes.

In addition to the issues mentioned previously, there is the issue of 
criteria; an OR query on 8 fields is going to take longer to filter than an 
OR query on 2 fields.

Anyway, I think maybe you should tell us more about your database design.   
Often the fastest solution involves a more sophisticated approach toward 
querying your tables.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (4+ messages)

Message-ID: <200410041906.33483.josh@agliodbs.com>
Permalink:  ../200410041906.33483.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200410041906.33483.josh@agliodbs.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: josh@agliodbs.com, mileskeaton@gmail.com
  Subject: Re: would number of fields in a table affect search-query time?
  In-Reply-To: <200410041906.33483.josh@agliodbs.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