Re: Long-running DELETE...WHERE...

Поиск
Список
Период
Сортировка
От Jochem van Dieten
Тема Re: Long-running DELETE...WHERE...
Дата
Msg-id 3C436009.40204@dev.null
обсуждение исходный текст
Ответ на Long-running DELETE...WHERE...  (jboes@nexcerpt.com (Jeff Boes))
Список pgsql-sql
Jeff Boes wrote:

> Why would a delete involving a subselect run so much longer than the
> individual delete commands?


Some SQL statements are faster than others. Try to rewrite your query to 
use EXISTS instead of IN and see if it makes any difference. I would 
recommend using EXPLAIN to find out what PostgreSQL is really doing and 
optimize from there.

jochem



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

Предыдущее
От: Marius Andreiana
Дата:
Сообщение: psql bug: copy paste statements looses tab character
Следующее
От: "Glenn MacGregor"
Дата:
Сообщение: pqFlush problem