From: Rainer Bauer <usenet@munnin.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Why is UseDeclareFetch so slow?
Date: Wed, 27 Jun 2007 16:40:45 +0200
Message-ID: <6ft483p1sfcupaid9hb778vsj3cg3bnlnh@4ax.com> (raw)
References: <csln73hi8pu9rlglofd6rikde0ss9199fg@4ax.com>
<4681B973.6080101@tpf.co.jp>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: usenet@munnin.com
Subject: Re: Why is UseDeclareFetch so slow?
In-Reply-To: <6ft483p1sfcupaid9hb778vsj3cg3bnlnh@4ax.com>
References: <csln73hi8pu9rlglofd6rikde0ss9199fg@4ax.com> <4681B973.6080101@tpf.co.jp> <6ft483p1sfcupaid9hb778vsj3cg3bnlnh@4ax.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox