Re: Creating large database of MD5 hash values

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Creating large database of MD5 hash values
Дата
Msg-id 47FEF306.5090502@gmail.com
обсуждение исходный текст
Ответ на Creating large database of MD5 hash values  ("Jon Stewart" <jonathan.l.stewart@gmail.com>)
Список 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/

В списке pgsql-performance по дате отправления:

Предыдущее
От: "Albe Laurenz"
Дата:
Сообщение: Performance increase with elevator=deadline
Следующее
От: Florian Weimer
Дата:
Сообщение: Re: Creating large database of MD5 hash values