Re: Why is UseDeclareFetch so slow?

Поиск
Список
Период
Сортировка
От Rainer Bauer
Тема Re: Why is UseDeclareFetch so slow?
Дата
Msg-id 6ft483p1sfcupaid9hb778vsj3cg3bnlnh@4ax.com
обсуждение исходный текст
Ответ на Why is UseDeclareFetch so slow?  (Rainer Bauer <usenet@munnin.com>)
Ответы Re: Why is UseDeclareFetch so slow?  (Hiroshi Inoue <inoue@tpf.co.jp>)
Re: Why is UseDeclareFetch so slow?  (David Gardner <david@gardnerit.net>)
Список pgsql-odbc
Hello Hiroshi,

>> So my questions are
>> 1) Is there any chance the driver itself could be enhanced like Dimitri
>> suggested here:
>> <http://archives.postgresql.org/pgsql-performance/2007-06/msg00512.php>?
>
>You can specify the fetch count in UseDeclareFetch mode using the
>  Cache Size option or FETCH=N connection string.

Yes, but the real question is why is the query 4 times slower when
UseDeclareFetch is enabled (FETCH was set to 100)?

I would have expected that the ODBC driver is fetching 100 rows in advance and
thus the query should execute in less than a second instead of 30 seconds.

Rainer

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Proposal for new pgsqlODBC feature - hiding tables inaccessible to the current user
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Why is UseDeclareFetch so slow?