pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Calabrese <m2calabr@yahoo.com>
To: pgsql-odbc@postgresql.org
Subject: ODBC Performance Question
Date: Tue, 4 Feb 2003 14:05:32 -0800 (PST)
Message-ID: <20030204220532.52037.qmail@web10705.mail.yahoo.com> (raw)

Here is my basic question:  Should I expect a query
that returns 0 tuples run in the same amount of time
(give or take a second) through the  ODBC and running
the query through psql?

Here is the experiment:
Turned logging on.
MS Access runs query (and does not come back)
Get query out of log that MS Access ran
copy to psql

MS Access times out (like 3 minutes or more)
psql 12 seconds

What I am using:
Access 97
psql odbc 7.2.5
psql 7.3.0

The querry if you are interested (it is alittle ugly):
SELECT
"public"."contacts"."id","public"."orders"."orderid",
      
"public"."orderdetails"."orderdetid","public"."buildabike"."buildabikeid",
       "public"."bikes_basicframetypes"."frametypeid",
      
"public"."contacts_currentframe_babid"."buildabikeid"
  FROM
"public"."orderdetails","public"."buildabike","public"."contacts_currentframe_babid",
      
"public"."orders","public"."bikes_basicframetypes","public"."contacts"
 WHERE (((((((("public"."orderdetails"."buildabikeid"
> 0 )
   AND ("public"."orderdetails"."partid" = 6502 ) )
   AND ("public"."orderdetails"."buildabikeid" =
"public"."buildabike"."buildabikeid" ) )
   AND ("public"."buildabike"."buildabikeid" =
"public"."contacts_currentframe_babid"."buildabikeid"
) )
   AND ("public"."orders"."orderid" =
"public"."orderdetails"."orderid" ) )
   AND ("public"."buildabike"."frametypeid" =
"public"."bikes_basicframetypes"."frametypeid" ) )
   AND ("public"."contacts"."id" =
"public"."orders"."custid" ) )
   AND ((NOT(("public"."contacts"."status" LIKE
'Pros%' ) )
   AND NOT(("public"."contacts"."willshow" LIKE 'n%' )
) )
   AND (lower("public"."contacts"."lastname" ) LIKE
'cala,m%' ) ) )
 ORDER BY "public"."bikes_basicframetypes"."framename"
,"public"."contacts"."lastname" ,
          "public"."contacts"."firstname"
;

Thanks for any help,
Michael




__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



Message-ID: <20030204220532.52037.qmail@web10705.mail.yahoo.com>
Permalink:  ../20030204220532.52037.qmail@web10705.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030204220532.52037.qmail@web10705.mail.yahoo.com

 · 

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: m2calabr@yahoo.com
  Subject: Re: ODBC Performance Question
  In-Reply-To: <20030204220532.52037.qmail@web10705.mail.yahoo.com>
  References: <20030204220532.52037.qmail@web10705.mail.yahoo.com>

* 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