Re: UUID, UUID-OSSP extension, and ODBC issue

From: Jeremy Thornton <consolity(at)outlook(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: UUID, UUID-OSSP extension, and ODBC issue
Date: 2014-02-28 20:19:39
Message-ID: COL128-W68BABDDEA772BAB2D71916AA820@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message randy.antler 2014-03-01 00:46:53 BUG #9396: Line editing keybindings not working
Previous Message Heikki Linnakangas 2014-02-28 17:54:13 Re: UUID, UUID-OSSP extension, and ODBC issue

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Inoue 2014-03-02 04:54:34 Re: 09.03.0100 cursor failures on various architectures
Previous Message Heikki Linnakangas 2014-02-28 17:54:13 Re: UUID, UUID-OSSP extension, and ODBC issue