Re: Real vs Int performance

Поиск
Список
Период
Сортировка
От Mladen Gogala
Тема Re: Real vs Int performance
Дата
Msg-id 4D418B10.7050008@vmsinfo.com
обсуждение исходный текст
Ответ на Re: Real vs Int performance  (Shaun Thomas <sthomas@peak6.com>)
Список pgsql-performance
On 1/27/2011 9:30 AM, Shaun Thomas wrote:
> I'm not sure about orders of magnitude on the storage/index side, but my
> tests gave us a 10% boost if just the keys are switched over to INT or
> BIGINT.

Well, it depends on what you're doing. Searching by an integer vs.
searching by a text string will probably not make much of a difference.
However, if you are calculating sums or averages, there will be a huge
difference.

--
Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
www.vmsinfo.com


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

Предыдущее
От: Michael Kohl
Дата:
Сообщение: Re: High load,
Следующее
От: Mladen Gogala
Дата:
Сообщение: Postgres 9.0 has a bias against indexes