Re: optimisation for a table with frequently used query - Mailing list pgsql-general

From PFC
Subject Re: optimisation for a table with frequently used query
Date
Msg-id op.ts1x39bmcigqcu@apollo13
Whole thread Raw
In response to optimisation for a table with frequently used query  (danmcb <danielmcbrearty@gmail.com>)
Responses Re: optimisation for a table with frequently used query
Re: optimisation for a table with frequently used query
List pgsql-general

> SELECT * from my_table where id_1 = x and id_2 = y;
>
> Neither id_1 or id_2 or the combination of them is unique. I expect
> this table to become large over time.

Create an index on (id_1, id_2), or (id_2,id_1).

pgsql-general by date:

Previous
From: "Greg Quinn"
Date:
Subject: Re: createdb.exe prompting for password on Vista
Next
From: Andrew Sullivan
Date:
Subject: Re: createdb.exe prompting for password on Vista