Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by postgresql.org (Postfix) with SMTP id 2C562475B0C for ; Wed, 27 Mar 2002 10:41:40 -0500 (EST) Received: from smtp.mail.virginia.edu by mail.virginia.edu id aa20376; 27 Mar 2002 10:41 EST Received: from jlk3xpc (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.9.3/8.9.3) with SMTP id KAA35302 for ; Wed, 27 Mar 2002 10:41:42 -0500 Message-ID: <005501c1d5a6$6c9a6630$de138f80@virginia.edu> From: Jodi Kanter To: Postgres Admin List Subject: join vs. IN statement Date: Wed, 27 Mar 2002 10:45:30 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0052_01C1D57C.83A45310" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200203/323 X-Sequence-Number: 3857 This is a multi-part message in MIME format. ------=_NextPart_000_0052_01C1D57C.83A45310 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable We are currently trying to determine if their is a performance difference w= ith postgres in using an IN statement in the where clause vs. using a join = between tables.=20 Is there any published documentation or someone with personal experience th= at can answer this question? We are adding sessioning to our web interface = and plan to append security info to the queries run from the interface.=20 I can add something like: ....... AND WHERE user IN (group1, group2) or I can do something like ....... SELECT data FROM tables WHERE grou= p_ID(of one table) =3D group_ID(of another table). Any thoughts? thanks Jodi Kanter _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20 =20 =20 ------=_NextPart_000_0052_01C1D57C.83A45310 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
We are currently trying to determine if their is a performance differe= nce=20 with postgres in using an IN statement in the where clause vs. using a join= =20 between tables.
Is there any published documentation or someone with personal experien= ce=20 that can answer this question? We are adding sessioning to our web interfac= e and=20 plan to append security info to the queries run from the interface.
 
I can add something like:     ....... &n= bsp;=20 AND WHERE user IN (group1, group2)
 
or I can do something like   =20 .......    SELECT data FROM tables WHERE group_ID(of on= e=20 table) =3D group_ID(of another table).
 
Any thoughts?
thanks
Jodi Kanter
 

_______________________________
Jodi=20 L Kanter
BioInformatics Database Administrator
University of=20 Virginia
(434) 924-2846
jkanter@virginia.edu

 

 

 

<= /DIV> ------=_NextPart_000_0052_01C1D57C.83A45310--