Re: odbc/ado problems

From: "Markus Donath" <md-postgres-donath(at)netapps(dot)de>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Re: odbc/ado problems
Date: 2004-09-01 08:19:48
Message-ID: ch40n7$1oqf$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc pgsql-performance

hello,

did you use a read only / forward only cursor (adOpenForwardOnly) ?
this is the fastest way to retreive data, other cursor types are much slower
with postgres odbc.

bye,
Markus Donath.

"Kroh Istvn" <istvan(dot)kroh(at)pomme(dot)hu> schrieb im Newsbeitrag
news:005a01c48f7f$9ff8ae70$0102a8c0(at)pomme001(dot)(dot)(dot)
> Hi all!
>
> I'm new here, so hello to everybody!
>
> I'm in a deep truble using postgesSQL 7.2.0 on a low-end pc with SUSE 8.
I'm
> using some databases from that pc through odbc (7.3.200). Until now i had
no
> problems with this solution, everithing worked fine. But today i wrote a
> small app, that converts/copies some data from a database to an other
> database.
>
> During this work i wrote a simple query as follows:
> select pers_driving_license from person where pers_id=23456
>
> This should return a single varchar(20) field. Running this query over
> ADO/ODBC from a Delphi app tooks 50-100 secs. If i run this from pgAdmin
II.
> it takes some msecs.
>
> The output of explain is:
> Index Scan using person_id_index on person (cost=0.00..3.14 rows=1
width=4)
>
> Any idea?
>
> Thanks in advance: steve
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Kroh István 2004-09-01 09:04:52 Fw: odbc/ado problems
Previous Message Kroh István 2004-08-31 17:26:15 odbc/ado problems

Browse pgsql-performance by date

  From Date Subject
Next Message gnari 2004-09-01 08:47:38 Re: Changing the column length
Previous Message Stefano Bonnin 2004-09-01 07:56:30 Fw: Query performance issue with 8.0.0beta1