Re: Creating large database of MD5 hash values

From: Chris <dmagick(at)gmail(dot)com>
To: Jon Stewart <jonathan(dot)l(dot)stewart(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Creating large database of MD5 hash values
Date: 2008-04-11 05:11:34
Message-ID: 47FEF306.5090502@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> 1. Which datatype should I use to represent the hash value? UUIDs are
> also 16 bytes...

md5's are always 32 characters long so probably varchar(32).

> 2. Does it make sense to denormalize the hash set relationships?

The general rule is normalize as much as possible then only denormalize
when absolutely necessary.

> 3. Should I index?

What sort of queries are you going to be running?

> 4. What other data structure options would it make sense for me to choose?

What sort of other data will you be needing to store?

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Craig Ringer 2008-04-11 07:23:36 Re: Views and functions returning sets of records
Previous Message Reid Thompson 2008-04-10 23:30:31 Re: Performance is low Postgres+Solaris