X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B17C032C143 for ; Thu, 14 Oct 2004 21:57:14 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58792-01 for ; Thu, 14 Oct 2004 20:57:10 +0000 (GMT) Received: from providerst.com.br (unknown [200.253.138.61]) by svr1.postgresql.org (Postfix) with ESMTP id B925C32C12B for ; Thu, 14 Oct 2004 21:57:06 +0100 (BST) Brma: igor [192.168.1.104] Received: from sistemas (igor [192.168.1.104]) by providerst.com.br (8.11.6/8.11.6) with SMTP id i9EKo2p12490 for ; Thu, 14 Oct 2004 18:50:02 -0200 Message-ID: <001301c4b231$280c4190$6801a8c0@providerst.local> From: "Igor Maciel Macaubas" To: Subject: View & Query Performance Date: Thu, 14 Oct 2004 18:02:41 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0010_01C4B217.FFA54670" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=HTML_60_70, HTML_FONTCOLOR_BLUE, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200410/197 X-Sequence-Number: 8673 This is a multi-part message in MIME format. ------=_NextPart_000_0010_01C4B217.FFA54670 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I'm trying to find smarter ways to dig data from my database, and have the = following scenario: table1 -- id -- name =2E =2E =2E =2E =2E =2E table2 -- id -- number =2E =2E =2E =2E =2E =2E 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 =3D t2.id; Will this be enough fast ? Are there a faster way to make it work ?! This table is mid-big, around 100K registers ..=20 Regards, Igor -- igor@providerst.com.br ------=_NextPart_000_0010_01C4B217.FFA54670 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 
I'm trying to find smarter ways to dig = data from=20 my database, and have the following scenario:
 
table1
-- id
-- name
.
.
.
.
.
.
 
table2
-- id
-- number
.
.
.
.
.
.
 
I want to create a view to give me back= just=20 what I want:
The id, the name and the number.=
I tought in doing the following:=
create view my_view as select= t1.id,=20 t1.name, t2.number from table1 as t1, table2 as t2 where t1.id = =3D=20 t2.id;
 
Will this be enough fast ? Are there a = faster=20 way to make it work ?!
This table is mid-big, around 100K regi= sters ..=20
 
Regards,
Igor
--
igor@providerst.com.br
 
 
 
------=_NextPart_000_0010_01C4B217.FFA54670--