pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zoltan Boszormenyi <zboszor@dunaweb.hu>
To: Ludek Finstrle <luf@pzkagis.cz>
Cc: pgsql-odbc@postgresql.org
Subject: Re: PsqlODBC slow on UNION queries
Date: Wed, 11 Jan 2006 09:48:48 +0100
Message-ID: <43C4C670.5020407@dunaweb.hu> (raw)
In-Reply-To: <20060110211559.GB8098@soptik.pzkagis.cz>
References: <43C1F84A.90707@dunaweb.hu>
	<25908.1136783922@sss.pgh.pa.us>
	<43C1FEEF.5060107@dunaweb.hu>
	<20060109085745.GC29135@soptik.pzkagis.cz>
	<43C253CD.8080501@dunaweb.hu>
	<20060109115916.GC30591@soptik.pzkagis.cz>
	<20060110211559.GB8098@soptik.pzkagis.cz>

Ludek Finstrle írta:

>>>If I set only Declare/Fetch or both to ON, opening the VIEW in Access
>>>comes close to what I experinced in psql, e.g. it appears almost instantly
>>>when using UNION ALL, and just under 7 seconds when using UNION.
>>>
>>>I don't remember which ODBC settings I used for the Windows2000 client
>>>and PowerBuilder, I am not near that machine. I will recheck it when
>>>I get back to my workplace next monday.
>>>      
>>>
>>There is another thing. psqlODBC driver simulate SQLColAttributes (I wrote
>>it on the fly so it could be different ODBC API) throught call
>>the query and then get the columns information before query is already
>>open. So it could be the time bottleneck.
>>I try describe it better:
>>SQLPrepare, SQLColAttributes (this call the statement for getting columns
>>information), SQLExecute (this call the statement for result).
>>
>>If you want trace it down the good start point is turn mylog output on
>>and read the result in C:\mylog_XXXX.log (or txt extension?).
>>    
>>
>
>I forgot. Feel free to send the mylog output here to list. We can
>help you to decode it ;-)
>  
>

I will, when I am back to my workplace.

In the meantime, I have set MyLog on in WinXP under VMWare here,
but Access produced some 120+ MB log and it wasn't even finished
reading the records... I didn't feel like I have to send it to the list. ;-)
Anyway, it turned out it used DECLARE CURSOR and it fetched
100 records at a time.

Best regards,
Zoltán Böszörményi




view thread (15+ messages)  latest in thread

Message-ID: <43C4C670.5020407@dunaweb.hu>
Permalink:  ../43C4C670.5020407@dunaweb.hu/
Also on:    postgresql.org/message-id/43C4C670.5020407@dunaweb.hu

 · 

reply

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: zboszor@dunaweb.hu, luf@pzkagis.cz
  Subject: Re: PsqlODBC slow on UNION queries
  In-Reply-To: <43C4C670.5020407@dunaweb.hu>
  References: <43C1F84A.90707@dunaweb.hu> <25908.1136783922@sss.pgh.pa.us> <43C1FEEF.5060107@dunaweb.hu> <20060109085745.GC29135@soptik.pzkagis.cz> <43C253CD.8080501@dunaweb.hu> <20060109115916.GC30591@soptik.pzkagis.cz> <20060110211559.GB8098@soptik.pzkagis.cz> <43C4C670.5020407@dunaweb.hu>

* 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