From: DenBaguse MasRodjie <roji@mail15.com>
To: pgsql-odbc@postgresql.org
Subject: Query takes a long time
Date: Tue, 7 Oct 2003 15:54:53 +0800
Message-ID: <004a01c38ca8$72ebdb80$1500a8c0@deskpro> (raw)
Thank you the query is sucessfull, but i have new problem. The query takes a long time(over 1 minute) for sub-select like below:
"select distinct t.bill_no, t.ref, t.bill_byr, c.name from artagih t, arcustomer c, arbill_lns where t.bill_no not in (select bill_no from arbill_lns) and t.cust_code=c.cust_code and t.d_r=arbill_lns.d_r and t.cust_code='CUST01' order by t.tanggal"
Is there something wrong with my query or do you have any suggestions?
If my query is correct, where is the problem? Is it in the postgre server or in ODBC?
Is there any OLE DB for Postgre, cause i'm using VB for my front-end application.
For comparison if i'm using MSDE for database server, it takes not more than 5 seconds for the same query with above.
With MySQL it takes over than 1 minute. I'm so confusing and stuck with this problem.
Thank you very much.
Roji
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: roji@mail15.com
Subject: Re: Query takes a long time
In-Reply-To: <004a01c38ca8$72ebdb80$1500a8c0@deskpro>
References: <004a01c38ca8$72ebdb80$1500a8c0@deskpro>
* 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