Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D72401337B53 for ; Mon, 3 Jan 2011 00:56:37 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 25868-08 for ; Mon, 3 Jan 2011 04:56:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from web82103.mail.mud.yahoo.com (web82103.mail.mud.yahoo.com [209.191.84.216]) by mail.postgresql.org (Postfix) with SMTP id 38F121337B34 for ; Mon, 3 Jan 2011 00:56:30 -0400 (AST) Received: (qmail 55373 invoked by uid 60001); 3 Jan 2011 04:56:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1294030588; bh=J5N1ipdv+h0yVCgOS02Ji0kaWOWVVn3wNfbR0wMPI+M=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Fjl6gwArKXyw0ES329+s0Cyr0rj57Q4D43BOtZZJUHRN7t3Du3g+OhFj8KZbtjsb8ipzXesoRarhL1FizlHQuBpg5LIiX4t16qZNrhT9/0PxzZfAezgeFEwRVqdMzXrJjJanUy1DJbASDmddUWUgztYKMiRN1ZFwFNK2aJOaY5M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=et1dSUXjAWMsCgbVEl4zlD0DU5ADDDYF9T+PPl0QzkY5Wr492wov7W9taK+BO6aS6PMiYZcOPQlzplR2l6K4z6do9SvQw5asxX09aymuAdhdBiCQxAPtH2qxSdT9DBmx6Uiv2iuGlvGEaydu4TaZ7phOBMO9KG2RYk+vkniOm6w=; Message-ID: <764796.51323.qm@web82103.mail.mud.yahoo.com> X-YMail-OSG: Y0D.hCEVM1lP3dgVJTe0vQRxT4ekRoLYwBRvVJx_2lfqzFs kXQj8mQPSIWge7guyo.PDXMztHi62AidYYp15CNSijalBWiH4N36GQMwku0s eEJqmH40.ezQH9og.JxBJ_eTzPX3uPsZ7geHqvmQCB..JILkrv1hLY5dQFat 5ajikbkPeacH5dvPslwvWP0HcccXV3On2NJxfY96VMn94gdiPCGTyJIc58wp IZ44g3s48Q0HGzrQa9tOaa6usSGg5z0neyVW1HRPzb2LyUVNl87b4Ypg82lw eNVQDc2gDtswlMW6oIN4D3pX_KAhclInUfo3u_74mwR3AW6lBBD171JTLNpZ usSKRUYR9UMmp9ThK2.AG8NKkIhlZVn94kZXqiYuiNqvvJvpR7_psBQbYMoT Hd.3ejpXLZrNg Received: from [75.25.120.243] by web82103.mail.mud.yahoo.com via HTTP; Sun, 02 Jan 2011 20:56:28 PST X-Mailer: YahooMailRC/553 YahooMailWebService/0.8.107.285259 References: <945290.45189.qm@web82104.mail.mud.yahoo.com> Date: Sun, 2 Jan 2011 20:56:28 -0800 (PST) From: Dennis Gearon Subject: Re: uuid, COMB uuid, distributed farms To: pgsql-general@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201101/32 X-Sequence-Number: 171391 Good catch! The article is:=0A=0Ahttp://www.informit.com/articles/printerfr= iendly.aspx?p=3D25862=0A=0A Dennis Gearon=0A=0A=0ASignature Warning=0A-----= -----------=0AIt is always a good idea to learn from your own mistakes. It = is usually a better =0Aidea to learn from others=E2=80=99 mistakes, so you = do not have to make them yourself. =0Afrom 'http://blogs.techrepublic.com.c= om/security/?p=3D4501&tag=3Dnl.e036'=0A=0A=0AEARTH has a Right To Life,=0Ao= therwise we all die.=0A=0A=0A=0A----- Original Message ----=0AFrom: brickle= n =0ATo: Dennis Gearon =0ASent: = Sun, January 2, 2011 8:49:13 PM=0ASubject: Re: [GENERAL] uuid, COMB uuid, d= istributed farms=0A=0AOn Sun, Jan 2, 2011 at 8:26 PM, Dennis Gearon wrote:=0A> On the tests in this article, doing large amoun= ts of consecutive inserts,=0A> generating new UUIDs, and having the indexes= getting updated caused a 30=0A> (THIRTY) times increase in time to do inse= rts. So he came up with a function=0A> that caused the lowest characters of= the UUIDs to change slowly according to=0A> time in microseconds. This red= uced the time to using UUIDs for PKs for inserts=0A> and joins BOTH by only= 10% relative to SEQUENCES and their integer primary =0A>keys.=0A=0AI think= you forgot to link to the article?=0A