From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Patrick Hatcher <PHatcher@macys.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Driver seems to hang fetching data
Date: Fri, 02 Mar 2007 11:15:22 +0900
Message-ID: <45E788BA.6090904@tpf.co.jp> (raw)
In-Reply-To: <OFA798AB70.A57ADE22-ON88257291.007438C9-85257291.00746D19@FDS.com>
References: <OFA798AB70.A57ADE22-ON88257291.007438C9-85257291.00746D19@FDS.com>
Patrick Hatcher wrote:
> Sorry. I didn't realize there was a setting besides the Global one. Here
> you go:
> (See attached file: psqlodbc_5360.log)
Thanks.
AFAIC the merits to use DECLARE/FETCH mode are
1. You can suppress the memory consumption at some level.
2. you can get first rows fast in some cases.
Looking at the log you sent me, probably the query in question is
declare "SQL_CUR02D9FB78" cursor for select amc_Week_id,
lpad(zl_divn_nbr::text,2,0) as zl_divn_nbr,
lpad(dept::text,4,0) as dept, .............
As for the merit 1), though the query returns 156673 records , you can
get them successfully even when
your machine has pretty small size of memory.
As for the merit 2), you don't get first rows first for the query
unfortunately.
According to the Commlog
declare "SQL_ ... 0.282sec
fetch the 1st 1000 rows 431.453sec
fetch the rest of the rows 29.89sec
Total throughput 461.625sec may be longer than that of the same query
without
using DECLARE/FETCH mode.
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, PHatcher@macys.com
Subject: Re: Driver seems to hang fetching data
In-Reply-To: <45E788BA.6090904@tpf.co.jp>
References: <OFA798AB70.A57ADE22-ON88257291.007438C9-85257291.00746D19@FDS.com> <45E788BA.6090904@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