From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Rainer Bauer <usenet@munnin.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Why is UseDeclareFetch so slow?
Date: Wed, 27 Jun 2007 23:46:20 +0900
Message-ID: <4682783C.5000705@tpf.co.jp> (raw)
In-Reply-To: <6ft483p1sfcupaid9hb778vsj3cg3bnlnh@4ax.com>
References: <csln73hi8pu9rlglofd6rikde0ss9199fg@4ax.com>
<4681B973.6080101@tpf.co.jp>
<6ft483p1sfcupaid9hb778vsj3cg3bnlnh@4ax.com>
Rainer Bauer wrote:
> 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.
Could you send me directly the Mylog output ?
regards,
HIroshi Inoue
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: inoue@tpf.co.jp, usenet@munnin.com
Subject: Re: Why is UseDeclareFetch so slow?
In-Reply-To: <4682783C.5000705@tpf.co.jp>
References: <csln73hi8pu9rlglofd6rikde0ss9199fg@4ax.com> <4681B973.6080101@tpf.co.jp> <6ft483p1sfcupaid9hb778vsj3cg3bnlnh@4ax.com> <4682783C.5000705@tpf.co.jp>
* 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