From: Jeremy Thornton <consolity@outlook.com>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: UUID, UUID-OSSP extension, and ODBC issue
Date: Fri, 28 Feb 2014 15:19:39 -0500
Message-ID: <COL128-W68BABDDEA772BAB2D71916AA820@phx.gbl> (raw)
In-Reply-To: <5310CD45.9010806@vmware.com>
References: <COL128-W441C3D5AF7F35943824500AA820@phx.gbl>
<5310C67D.7040901@vmware.com>
<COL128-W19B90F36F000B287B5BDB4AA820@phx.gbl>
<5310CD45.9010806@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
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 Postgres will have it own native uuid v1 and v4 functions that are faster (more like newid() or newsequentialid() in SQL server). I mean 1,149 and 763 rows per second using the uuid-ossp extension may not be slow by some standards, but we are running a multi-tenant application that requires as much speed as we can pull out of it.
The insert is ran as one transaction.
UUID v4 when generated client side postgres inserts 100,000 rows in 49 seconds (2040 inserts per sec[ips]),UUID v1 when generated client side postgres inserts 100,000 rows in 49 seconds (2040 ips),UUID v4 when generated by uuid_generate_v4() uuid-ossp extension postgres inserts 100,000 rows in 87 seconds (1,149 ips),UUID v1 when generated by uuid_generate_v1() uuid-ossp extension postgres inserts 100,000 rows in 131 seconds (763 ips).
- Jeremy =
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: consolity@outlook.com, hlinnakangas@vmware.com, pgsql-odbc@postgresql.org
Subject: Re: UUID, UUID-OSSP extension, and ODBC issue
In-Reply-To: <COL128-W68BABDDEA772BAB2D71916AA820@phx.gbl>
References: <COL128-W441C3D5AF7F35943824500AA820@phx.gbl> <5310C67D.7040901@vmware.com> <COL128-W19B90F36F000B287B5BDB4AA820@phx.gbl> <5310CD45.9010806@vmware.com> <COL128-W68BABDDEA772BAB2D71916AA820@phx.gbl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox