Re: Have I b0rked something? Slow comparisons on "where x in (...)"

Поиск
Список
Период
Сортировка
От Stephen Harris
Тема Re: Have I b0rked something? Slow comparisons on "where x in (...)"
Дата
Msg-id 20070503135712.GA31220@pugwash.spuddy.org
обсуждение исходный текст
Ответ на Re: Have I b0rked something? Slow comparisons on "where x in (...)"  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Have I b0rked something? Slow comparisons on "where x in (...)"  (Listmail <lists@peufeu.com>)
Список pgsql-general
On Wed, May 02, 2007 at 05:59:49PM -0400, Tom Lane wrote:
> Stephen Harris <lists@spuddy.org> writes:

> >   "select stuff from table where index_key in (" .
> >       join(",",keys %hash) . ") AND non_index_row in ('xyz','abc','def')

> In what, a seq scan?

Yeah, if the number of comparisons exceeds 156 then it switched from
index scan to sequential scan.

> time, I can see where the time might get eaten up.  Where is the
> index_key column in the tuples, exactly?

First column.

--

rgds
Stephen

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

Предыдущее
От: Paul Tilles
Дата:
Сообщение: psql access of user's environmental variables
Следующее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Update violating constraint