Re: Fetching multiple rows in single round trip

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: Fetching multiple rows in single round trip
Дата
Msg-id 2DDFF01C-7651-45EC-9252-17605E11F9B3@yahoo.com
обсуждение исходный текст
Ответ на Re: Fetching multiple rows in single round trip  (Jon Smark <jon.smark@yahoo.com>)
Список pgsql-general
On May 18, 2012, at 17:06, Jon Smark <jon.smark@yahoo.com> wrote:

> Hi,
>
>> ...WHERE wid = ANY(string_to_array(?,';'))
>>
>> where the ? is a parameter that you replace with a semi-colon delimited listing of widget IDs
>>
>> Performance depends on specifics you have not provided, especially the expected number of widgets you are going to
befiltering one. 
>
>
> Thanks for the reply.  The number of widgets is variable, but should not be higher than about 20 in the worst case,
with10 being 
> a more average number.  Which solution should I opt for in these circumstances?
>
> Cheers,
> Jon
>

You should just try both and see which one performs better in your specific case.  I do not know generally which one is
bestin theory. 

David J.

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

Предыдущее
От: Bosco Rama
Дата:
Сообщение: Re: Why are pg_restore taking that long ?
Следующее
От: David Salisbury
Дата:
Сообщение: timestamps, formatting, and internals