X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 65C6047580B for ; Sun, 16 Feb 2003 05:30:39 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 29A90474E42 for ; Sun, 16 Feb 2003 05:30:38 -0500 (EST) Received: (qmail 25979 invoked from network); 16 Feb 2003 10:30:39 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 16 Feb 2003 10:30:39 -0000 Received: from unknown (HELO mcadnote1) (219.61.40.106) by sd.tpf.co.jp with SMTP; 16 Feb 2003 10:30:39 -0000 From: "Hiroshi Inoue" To: "Ionut Giurea" Cc: Subject: Re: slowness in fetch from the psqlodbc driver Date: Sun, 16 Feb 2003 19:33:19 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/79 X-Sequence-Number: 2697 > -----Original Message----- > From: Of Ionut Giurea > > Hi, > > I am using PsqlODBC 7.2.5 and Postgres 7.2.2. While trying to run > a Delphi > 3 application using BDE I noticed some important differences in > comparison > to an MS Sql database in selecting multiple rows from a database. > This can > be noticed even in borland's database explorer when running a > select * from > large_table and displaying the results in a grid table. I looked at the > traffic between the computer and the database usgina tcp/ip > packet sniffer > and the response I got from the MS SQL and Postgres SQL server are quite > similiar as traffic and speed, BUT there are two differences: > > 1. In the postgres case, all the respone records are fetched from the > database server by the odbc driver,while in the MS SQL case, not all the > response records are transferred, only a part, and the rest are > transferred > when I move down in the application's grid table. This difference > is not so > important from the user's point of view, he didn't even notices it, it > might became semnificative for very large tables when the traffic between > the application and the database server is big. Please turn on the *use declare/fetch* option. regards, Hiroshi Inoue