Primary keys and speed

From: Rob Brown-Bayliss <on_the_net(at)clear(dot)net(dot)nz>
To: PostgreSQL General List <pgsql-general(at)postgresql(dot)org>
Subject: Primary keys and speed
Date: 2001-09-06 07:58:55
Message-ID: 999763135.4949.3.camel@ZOOstation.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hello.

I am looking at useing uuid's as primary keys rather than a normal
sequence of numbers.

The uuids are long text strings like so:

7559e648-a29c-11d5-952f-00c026a18838

The reason for useing them is that it's almost gaurenteed that
imported data from another site is going to have a unique identifier.

But I was wondering if this will impact on the speed of the database.

In the long run the application does not need to be blindingly fast as 99%
of the time it is waiting on human interaction.

Any ideas?

--

Rob Brown-Bayliss
---======o======---

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2001-09-06 08:50:44 Re: problem with selects based on dates
Previous Message Mike Withers 2001-09-06 07:15:50 problem with selects based on dates