Re: [GENERAL] 7.4Beta

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: [GENERAL] 7.4Beta
Дата
Msg-id 20030815073357.G19338-100000@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: [GENERAL] 7.4Beta  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, 15 Aug 2003, Tom Lane wrote:

> Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> > select * from fk where not exists(select * from pk where pk.key=fk.key)
> >  and key is not null;
> > (doing seq scan/subplan doing index scan - which is probably close to the
> > current system)
>
> Actually, even that would probably be noticeably better than the current
> system.  I haven't profiled it (someone should) but I suspect that
> executor startup/shutdown time is a huge hit.  Even though the trigger
> is caching a plan, it has to instantiate that plan for each referencing
> tuple --- and the executor is not designed for quick startup/shutdown.

Yeah, but it was pretty much the best I could do testing on the command
line.  And it was still a fair bit more expensive than using IN (my tests
on various key types showed anywhere from 15% to 300% better speed on IN
over exists for this).




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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: [GENERAL] 7.4Beta
Следующее
От: Andreas Pflug
Дата:
Сообщение: Re: [GENERAL] 7.4Beta