Re: Avoiding surrogate keys

From: John R Pierce <pierce(at)hogranch(dot)com>
To: PGSQL Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Avoiding surrogate keys
Date: 2010-05-01 20:14:33
Message-ID: 4BDC8BA9.9080604@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


If your 'natural key' is a large text field, I'd have to assume there's
some point at which a surrogate index would be more efficient. Would
this be above a few dozen characters, or a few 100 characters? I
wouldn't want a PK based on a multi-K byte text field for a table that
has many 10s or 100s of 1000s of rows, for sure.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2010-05-01 20:18:21 Re: PostgreSQL vs. Microsoft SQL server
Previous Message Scott Marlowe 2010-05-01 19:08:12 Re: PostgreSQL vs. Microsoft SQL server