Re: Which Join is better

From: Maria Arias de Reyna <marias(at)emergya(dot)es>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Which Join is better
Date: 2011-08-02 06:47:02
Message-ID: 201108020847.03199.marias@emergya.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

El Martes 02 Agosto 2011, Adarsh Sharma escribió:
> Dear all,
>
> Just want to know which join is better for querying data faster.
>
> I have 2 tables A ( 70 GB ) & B ( 7 MB )
>
> A has 10 columns & B has 3 columns.Indexes exist on both tables's ids.
>
> select p.* from table A p, B q where p.id=q.id
>
> or
>
> select p.* from table B q , A p where q.id=p.id
>
>
> Thanks

Hi Adarsh,

What does a "EXPLAIN ANALYZE" say after a VACCUM?

--
María Arias de Reyna Domínguez
Área de Operaciones

Emergya Consultoría
Tfno: +34 954 51 75 77 / +34 607 43 74 27
Fax: +34 954 51 64 73
www.emergya.es

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Szymon Guz 2011-08-02 06:47:41 Re: Which Join is better
Previous Message Adarsh Sharma 2011-08-02 06:42:11 Which Join is better