Is this possible / slow performance? - Mailing list pgsql-performance

From Joost Kraaijeveld
Subject Is this possible / slow performance?
Date
Msg-id A3D1526C98B7C1409A687E0943EAC410605EEE@obelix.askesis.nl
Whole thread Raw
List pgsql-performance
Hi every one,


Why does this take forever (each query is sub second when done seperately)?
Is it because I cannot open two cursors in the same transaction?

begin;

declare SQL_CUR01 cursor for
SELECT A.ordernummer, B.klantnummer FROM "orders" A LEFT OUTER JOIN "klt_alg" B ON A.Klantnummer=B.Klantnummer ORDER BY
A.klantnummer;
fetch 100 in SQL_CUR01;

declare SQL_CUR02 cursor for
SELECT A.ordernummer, B.klantnummer FROM "orders" A LEFT OUTER JOIN "klt_alg" B ON A.Klantnummer=B.Klantnummer ORDER BY
A.klantnummerdesc; 
fetch 100 in SQL_CUR02;

commit;


TIA

Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl

pgsql-performance by date:

Previous
From: Antony Paul
Date:
Subject: Re: Index not used with or condition
Next
From: "Steinar H. Gunderson"
Date:
Subject: Re: Index not used with or condition