pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igor Maciel Macaubas <igor@providerst.com.br>
To: pgsql-performance@postgresql.org
Subject: View & Query Performance
Date: Thu, 14 Oct 2004 18:02:41 -0300
Message-ID: <001301c4b231$280c4190$6801a8c0@providerst.local> (raw)

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@providerst.com.br

view thread (3+ messages)  latest in thread

Message-ID: <001301c4b231$280c4190$6801a8c0@providerst.local>
Permalink:  ../001301c4b231$280c4190$6801a8c0@providerst.local/
Also on:    postgresql.org/message-id/001301c4b231$280c4190$6801a8c0@providerst.local

 · 

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: igor@providerst.com.br
  Subject: Re: View & Query Performance
  In-Reply-To: <001301c4b231$280c4190$6801a8c0@providerst.local>

* 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