X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 77B5ED1B183 for ; Thu, 29 Jul 2004 10:18:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 41737-02 for ; Thu, 29 Jul 2004 13:18:53 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by svr1.postgresql.org (Postfix) with ESMTP id ACA9FD1B16B for ; Thu, 29 Jul 2004 10:18:48 -0300 (ADT) Received: by mproxy.gmail.com with SMTP id 73so5896rnk for ; Thu, 29 Jul 2004 06:18:52 -0700 (PDT) Received: by 10.38.208.34 with SMTP id f34mr26440rng; Thu, 29 Jul 2004 06:18:52 -0700 (PDT) Message-ID: <4b09a0c0407290618a54b072@mail.gmail.com> Date: Thu, 29 Jul 2004 15:18:52 +0200 From: Jean-Max Reymond To: Eric HAGENBACH Subject: Re: bad performance for Access, ODBC and Postgres Cc: pgsql-odbc@postgresql.org In-Reply-To: <4108F435.80803@vif.tm.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <4b09a0c04072905345df62f96@mail.gmail.com> <4108F435.80803@vif.tm.fr> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/160 X-Sequence-Number: 4293 On Thu, 29 Jul 2004 14:57:25 +0200, Eric HAGENBACH wrote: > Jean-Max Reymond a =E9crit : >=20 > >Hi, > >I have very poor access whith a front end Access 2003, ODBC and Postgres= 7.4.3. > >Much time to find a record in a table ff 13000 records with indexs. > >Sniffing the network, I can see a lot of traffic and the CPU of > >postmaster is about 30% (P4, 2.8 GHz). It seems that all the data's > >are backed on the client side and then, analyzed. > >Does it exist an option to improve the performances ? > >thanks, > > > > > > > Maybe you can use the EXPLAIN command to see what query plan the system > creates for your query (you can see the where condition, which index is > used, ...) >=20 > Eric. >=20 EXPLAIN is for identified requests and I don't know which request Access se= nds. It seems that Access open a cursor on the database and reads each record one by one and tries to match with the condition. This is the only way I can explain such behaviour and it is of course very silly. --=20 Jean-Max Reymond CKR Solutions http://www.ckr-solutions.com