X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 41A14474E44 for ; Tue, 4 Feb 2003 17:05:31 -0500 (EST) Received: from web10705.mail.yahoo.com (web10705.mail.yahoo.com [216.136.130.213]) by postgresql.org (Postfix) with SMTP id 8FA1B474E42 for ; Tue, 4 Feb 2003 17:05:30 -0500 (EST) Message-ID: <20030204220532.52037.qmail@web10705.mail.yahoo.com> Received: from [216.116.41.51] by web10705.mail.yahoo.com via HTTP; Tue, 04 Feb 2003 14:05:32 PST Date: Tue, 4 Feb 2003 14:05:32 -0800 (PST) From: Michael Calabrese Subject: ODBC Performance Question To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/17 X-Sequence-Number: 2635 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