Re: [GENERAL] 50 MB Table - Mailing list pgsql-general

From Howie
Subject Re: [GENERAL] 50 MB Table
Date
Msg-id Pine.LNX.3.96.1000307083814.5494D-100000@rabies.toodarkpark.org
Whole thread Raw
In response to Re: [GENERAL] 50 MB Table  (JB <jimbag@kw.igs.net>)
List pgsql-general
On Mon, 6 Mar 2000, JB wrote:

> [SNIP]
> CREATE TABLE info (
>   lastname char(50),
>   street_name char(50),
>   street_number char(5),
>   ... (a bunch of other stuff that works fine with '=')
> );
>
> CREATE INDEX nx_info1 ON info (lastname);
> CREATE INDEX nx_info2 ON info (street_name);
>
> The select is as simple as this in most cases...
>
> SELECT * FROM info WHERE street_name LIKE 'MAIN%';
> [SNIP]
might want to try CLUSTERing the table based on one of the indexes.
that'll put everything in order ( physically ) and should speed it up a
bit.

id also suggest grabbing more ram while its (relatively) inexpensive.

> [SNIP]

---
Howie <caffeine@toodarkpark.org>   URL: http://www.toodarkpark.org
"You do not have the right to free health care.  That would be nice, but
 from the looks of public housing, we're just not interested in health care."


pgsql-general by date:

Previous
From: "Zot O'Connor"
Date:
Subject: change owner of database -- answer
Next
From: Gabriel Fernandez
Date:
Subject: Re: Re: [GENERAL] Regular expressions syntax: is \ the escape character ?