poor performance of subquery in psql

Поиск
Список
Период
Сортировка
От John Liu
Тема poor performance of subquery in psql
Дата
Msg-id NDBBKKKHILOHGHNKGOCEOECHELAA.johnl@emrx.com
обсуждение исходный текст
Ответ на Re: [PATCH] psql visibility clarification patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: poor performance of subquery in psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
1. the following query is so slow, after 12 hours, 
I kill it -
delete from doc where cdi in (select cdi from doc_b1);
doc_b1 records = 40000
doc records = 5000000
cdi are indexed in both table.

2. I rewrite the above task in plpgsql, it
takes 10 secs to finish. 

why psql subquery is not smarter enough to use
indexes if obviously?

johnl


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

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: Fix for log_min_error_messages
Следующее
От: Marek Mosiewicz
Дата:
Сообщение: OLE DB PostgreSQL provider