Received: from u1.abs.net (root@u1.abs.net [207.114.0.131]) by hub.org (8.8.8/8.7.5) with ESMTP id OAA03742 for ; Mon, 29 Jun 1998 14:54:07 -0400 (EDT) Received: from insightdist.com (nobody@localhost) by u1.abs.net (8.9.0/8.9.0) with UUCP id OAA09530 for pgsql-interfaces@postgreSQL.org; Mon, 29 Jun 1998 14:43:30 -0400 (EDT) X-Authentication-Warning: u1.abs.net: nobody set sender to insightdist.com!daveh using -f Received: from ceodev by insightdist.com (AIX 3.2/UCB 5.64/4.03) id AA23587; Mon, 29 Jun 1998 14:40:06 -0400 Received: from daveh by ceodev (AIX 4.1/UCB 5.64/4.03) id AA54424; Mon, 29 Jun 1998 14:40:05 -0400 Message-Id: <3597E0BB.DA0DF3DA@insightdist.com> Date: Mon, 29 Jun 1998 14:45:16 -0400 From: David Hartwig Organization: Insight Distribution Systems X-Mailer: Mozilla 4.05 [en] (Win95; I) Mime-Version: 1.0 To: Christian Steindl Cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] scrollable cursor via odbc References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Christian, The problem is in the backend optimizer. If you turn on the commlog, you will find that queries are being generated with lots of ORs. This is to get a record set. If you run that query with EXPLAIN you will find that it is doing a sequential scan. (Maybe several per page scroll.) Even worse, if you have a multi-part key, the optimizer will spend (expend) much resource CNFifying the where clause. I am working on a patch to resolve this in the backend. I have a workable solution, for queries with this particular signature, but I am trying to make it more general purpose in nature. Christian Steindl wrote: > i use the odbc interface to the postgresql but it seems to be quite > slowly. > although it's a single table with about 20.000 rows. > i set a link in an access-db and scrolling (next page, last row) is very > slowly. > is there a way to optimize the performance? > can i use scrollable cursor via the odbc-drv? > > best regards >