X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 840F3475A71 for ; Tue, 25 Mar 2003 10:51:51 -0500 (EST) Received: from mail.incofisa.com (213-96-16-90.uc.nombres.ttd.es [213.96.16.90]) by postgresql.org (Postfix) with ESMTP id B8FAB474E44 for ; Tue, 25 Mar 2003 10:51:41 -0500 (EST) Received: from www (www.incofisa.com [192.168.0.5]) by mail.incofisa.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with SMTP id h2PFxfA17317; Tue, 25 Mar 2003 16:59:41 +0100 Message-ID: <002f01c2f2e6$3b3341d0$0500a8c0@incofisa.com> From: =?iso-8859-1?Q?Sime=F3_Reig?= To: "Joachim Zauner" Cc: References: Subject: Re: Fastest way to read tuples Date: Tue, 25 Mar 2003 16:50:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-20.6 required=5.0 tests=BAYES_10,ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT,RCVD_IN_RFCI, REFERENCES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/68 X-Sequence-Number: 2787 You should play with a 'limit' in the sql . Best regards Sime=F3 Reig ----- Original Message ----- From: "Joachim Zauner" To: Sent: Tuesday, March 25, 2003 9:39 AM Subject: [ODBC] Fastest way to read tuples > Hi List, > I want to retrieve (readonly) 500 - 1500 Tuples via ODBC in an Visual Basic > 6 Program over a 64kBit Line. The Raw Data of 500 Tuples is ~ 52kb but it > takes 7 Seconds to fill the Recordset. > Currently I use ADO to access the DB. I played around with Cursors but no > effect (with Serverside Cursor the execution of the SQL String is faster but > walking throug the Rows is slower). > > The Problem is not the SQL String - the Server takes only 0.2 Seconds for > the Query but the Transfer of the Dataset is slow. Is RDO or DAO (or > whatever) faster? > > Now some Info about my System: > ODBC Version: 07.02.0005 > VB 6.0 Enterprise SP5 > W2k Pro SP3 > PostgreSQL 7.2.1 on SuSE Linux (for Development / 7.3 for Production) > > My Connectionstring: > DRIVER=3D{PostgreSQL+ (Beta)};DATABASE=3Dticket;SERVER=3DmyServer > ;PORT=3D5432;UID=3Dmyuser;PWD=3Dmypass;ReadOnly=3D1;Protocol=3D6.4;FakeOidI= ndex=3D1;Show > OidColumn=3D1;RowVersioning=3D0;ShowSystemTables=3D0;ConnSettings=3D;Fetch= =3D100;Socke > t=3D4096;UnknownSizes=3D0;MaxVarcharSize=3D254;MaxLongVarcharSize=3D8190;De= bug=3D0;Com > mLog=3D0;Optimizer=3D1;Ksqo=3D1;UseDeclareFetch=3D1;TextAsLongVarchar=3D1;U= nknownsAsLo > ngVarchar=3D0;BoolsAsChar=3D0;Parse=3D0;CancelAsFreeStmt=3D0;ExtraSysTableP= refixes=3Dd > d_;;LFConversion=3D1;UpdatableCursors=3D1;DisallowPremature=3D0;TrueIsMinus= 1=3D0;BI=3D > 0' > > Regards, > j.zauner > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org