X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 97B068B9D5F for ; Tue, 22 Feb 2005 22:16:05 +0000 (GMT) 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 32954-08 for ; Tue, 22 Feb 2005 22:16:00 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by svr1.postgresql.org (Postfix) with ESMTP id 545548B9D35 for ; Tue, 22 Feb 2005 22:16:01 +0000 (GMT) Received: from jfradkin ([66.15.127.235]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ICC002JG36O18J1@vms044.mailsrvcs.net> for pgsql-sql@postgresql.org; Tue, 22 Feb 2005 16:16:00 -0600 (CST) Date: Tue, 22 Feb 2005 17:19:55 -0500 From: "Joel Fradkin" Subject: Speeds using a transaction vrs not To: Message-id: <004301c5192c$a3c3f0f0$797ba8c0@jfradkin> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.154 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: *** X-Archive-Number: 200502/256 X-Sequence-Number: 20367 I wrote a .net program to move my data to postgres (works great on SQ_ASCII). In fiddling around I tried it using the odbc driver and a transaction originally, but converted it to using the .net connectivity but no transaction. What I found was it moved my database (4 gig in MSSQL) in 2 hours using = the .net, but 12 hours with the odbc and transaction. Have any of you played around to see if using a transaction should be = that much slower or is it the odbc versus .net? I paid a consultant to look at what would work best and his speed tests indicated the odbc and the .net were pretty close, so I am assuming it = is because I am using a transaction on my odbc test. I can run again without it or with it on .net driver, but thought I = would ask.=20 We only use transaction on important multiple table updates in our = system now, so should not be a huge thing, but was curious. Joel Fradkin =A0