Re: how to import "where exists(subquery)" EXISTS CONDITION performance?

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: how to import "where exists(subquery)" EXISTS CONDITION performance?
Дата
Msg-id 56600E83.5090305@hogranch.com
обсуждение исходный текст
Ответ на how to import "where exists(subquery)" EXISTS CONDITION performance?  (shili <shi_li_1992@163.com>)
Список pgsql-general
On 12/1/2015 11:51 PM, shili wrote:
> I had saw this sentence: SQL statements that use the EXISTS condition
> in PostgreSQL are very inefficient since the sub-query is RE-RUN for
> EVERY row in the outer query's table. There are more efficient ways to
> write most queries, that do not use the EXISTS condition. So,I want to
> know how PostgreSQL to implement the EXISTS condition? Is that
> sentence true? and,if that is true,are there any methods to import the
> performance of the EXISTS condition?

that would depend on the specific query with which you're having
performance problems.

start with EXPLAIN ANALYZE SELECT ....restofyourquery....;    to see
whats going on

--
john r pierce, recycling bits in santa cruz



В списке pgsql-general по дате отправления:

Предыдущее
От: Albe Laurenz
Дата:
Сообщение: RE: [GENERAL] how to import "where exists(subquery)" EXISTS CONDITION performance?
Следующее
От: Nicolas Paris
Дата:
Сообщение: Re: Comparing two postgres dump files.