Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJTuS-0008G7-My for pgsql-odbc@arkaria.postgresql.org; Fri, 28 Feb 2014 20:19:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WJTuS-0004Rx-5u for pgsql-odbc@arkaria.postgresql.org; Fri, 28 Feb 2014 20:19:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJTuQ-0004QS-PW; Fri, 28 Feb 2014 20:19:50 +0000 Received: from col0-omc2-s17.col0.hotmail.com ([65.55.34.91]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJTuH-0005Cs-Up; Fri, 28 Feb 2014 20:19:50 +0000 Received: from COL128-W68 ([65.55.34.72]) by col0-omc2-s17.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 28 Feb 2014 12:19:39 -0800 X-TMN: [AOdYALFQppXSiHaMU+bFntXP54VKFTI3] X-Originating-Email: [consolity@outlook.com] Message-ID: Content-Type: multipart/alternative; boundary="_785b75ff-b5ff-44d5-8dba-aa639132ece4_" From: Jeremy Thornton To: Heikki Linnakangas CC: "pgsql-odbc@postgresql.org" , "pgsql-bugs@postgresql.org" Subject: Re: UUID, UUID-OSSP extension, and ODBC issue Date: Fri, 28 Feb 2014 15:19:39 -0500 Importance: Normal In-Reply-To: <5310CD45.9010806@vmware.com> References: , <5310C67D.7040901@vmware.com> ,<5310CD45.9010806@vmware.com> MIME-Version: 1.0 X-OriginalArrivalTime: 28 Feb 2014 20:19:39.0696 (UTC) FILETIME=[6867B300:01CF34C2] X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org --_785b75ff-b5ff-44d5-8dba-aa639132ece4_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable After further testing it appears just to be the slow uuid-ossp extensions. = Here is some additional results. Because of the difference between the v4/v= 1 extension times via ODBC I do not think now that ODBC is the problem eith= er. I look forward to when Postgres will have it own native uuid v1 and v4 = functions that are faster (more like newid() or newsequentialid() in SQL se= rver). I mean 1=2C149 and 763 rows per second using the uuid-ossp extension= may not be slow by some standards=2C but we are running a multi-tenant app= lication that requires as much speed as we can pull out of it.=20 The insert is ran as one transaction. UUID v4 when generated client side postgres inserts 100=2C000 rows in 49 se= conds (2040 inserts per sec[ips])=2CUUID v1 when generated client side post= gres inserts 100=2C000 rows in 49 seconds (2040 ips)=2CUUID v4 when generat= ed by uuid_generate_v4() uuid-ossp extension postgres inserts 100=2C000 row= s in 87 seconds (1=2C149 ips)=2CUUID v1 when generated by uuid_generate_v1(= ) uuid-ossp extension postgres inserts 100=2C000 rows in 131 seconds (763 i= ps). - Jeremy = --_785b75ff-b5ff-44d5-8dba-aa639132ece4_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
After further testing it appears= just to be the slow uuid-ossp extensions. Here is some additional results.= Because of the difference between the v4/v1 extension times via ODBC I do = not think now that ODBC is the problem either. I look forward to when Postg= res will have it own native uuid v1 and v4 functions that are faster (more = like newid() or newsequentialid() in SQL server). I mean 1=2C149 and 763 ro= ws per second using the uuid-ossp extension may not be slow by some standar= ds=2C but we are running a multi-tenant application that requires as much s= peed as we can pull out of it. =3B

The insert is ran= as one transaction.

UUID v4 when generated client= side postgres inserts 100=2C000 rows in 49 seconds (2040 inserts per sec[i= ps])=2C
UUID v1 when generated client side postgres inserts 100= =2C000 rows in 49 seconds (2040 ips)=2C
UUID v4 when generated by= uuid_generate_v4() uuid-ossp extension postgres inserts 100=2C000 rows in = 87 seconds (1=2C149 ips)=2C
UUID v1 when generated by uuid_genera= te_v1() uuid-ossp extension postgres inserts 100=2C000 rows in 131 seconds = (763 ips).

- Jeremy
= --_785b75ff-b5ff-44d5-8dba-aa639132ece4_--