From: Pallav Kalva
Subject: Re: Poor Query
Date: ,
Msg-id: 41B48053.7090805@deg.cc
(view: Whole thread, Raw)
In response to: Re: Poor Query  (Pierre-Frédéric Caillaud<>)
Responses: Re: Poor Query  (Pierre-Frédéric Caillaud<>)
List: pgsql-performance

Tree view

Poor Query  (Pallav Kalva, )
 Re: Poor Query  (Pierre-Frédéric Caillaud<>, )
  Re: Poor Query  (Pallav Kalva, )
   Re: Poor Query  (Pierre-Frédéric Caillaud<>, )
    Re: Poor Query  (Pallav Kalva, )
     Re: Poor Query  (Pierre-Frédéric Caillaud<>, )
      Re: Poor Query  (Pallav Kalva, )
       Re: Poor Query  (Pierre-Frédéric Caillaud<>, )
        Re: Poor Query  (Pallav Kalva, )

Pierre-Frédéric Caillaud wrote:

>
>     How many rows do the following queries return :
>
> select userID
>              from bankaccount ba
>              where ba.bankaccountID = u.bankaccountID
>              and   ba.accountnumber = '12345678'
>
> select userID
>           from bankaccount ba
>           where ba.bankaccountID = u.bankaccountID
>           and ba.routingNumber = '12345678'
>
>     Can you post EXPLAIN ANALYZE for these two queries ?
>     Regards.
>
Thanks! for the quick reply. It should usually return just one account
for that user so its only one record. Actually userid column doesnt
exist on bankaccount table it exists only on the user table and it is
joined with bankaccountid column, if i run this query separately i
wouldnt able to run it .



pgsql-performance by date:

From: Pallav Kalva
Date:
Subject: Re: Poor Query
From: "Rosny"
Date:
Subject: Re: TableSpace Design issues on Postgres 8.0 beta 5