Re: View & Query Performance

From: "Alban Medici (NetCentrex)" <amedici(at)fr(dot)netcentrex(dot)net>
To: "'Igor Maciel Macaubas'" <igor(at)providerst(dot)com(dot)br>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: View & Query Performance
Date: 2004-10-15 07:28:18
Message-ID: 20041015072820.B60AB32C2FC@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Can you tell us more about the structure of your tables,
witch sort of index did you set on witch fields ?

Did you really need to get ALL records at once, instead you may be could use
paging (cursor or SELECT LIMIT OFFSET ) ?

And did you well configure your .conf ?

Regards

Alban Médici

_____

From: pgsql-performance-owner(at)postgresql(dot)org
[mailto:pgsql-performance-owner(at)postgresql(dot)org] On Behalf Of Igor Maciel
Macaubas
Sent: jeudi 14 octobre 2004 23:03
To: pgsql-performance(at)postgresql(dot)org
Subject: [PERFORM] View & Query Performance

Hi all,

I'm trying to find smarter ways to dig data from my database, and have the
following scenario:

table1
-- id
-- name
.
.
.
.
.
.

table2
-- id
-- number
.
.
.
.
.
.

I want to create a view to give me back just what I want:
The id, the name and the number.
I tought in doing the following:
create view my_view as select t1.id, t1.name, t2.number from table1 as t1,
table2 as t2 where t1.id = t2.id;

Will this be enough fast ? Are there a faster way to make it work ?!
This table is mid-big, around 100K registers ..

Regards,
Igor
--
igor(at)providerst(dot)com(dot)br



In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Richard Huxton 2004-10-15 07:37:06 Re: View & Query Performance
Previous Message Tom Lane 2004-10-15 05:13:36 Re: First set of OSDL Shared Mem scalability results, some wierdness ...