Re: New version of money type

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: New version of money type
Дата
Msg-id 20060916212754.GF38854@enterprisedb.com
обсуждение исходный текст
Ответ на Re: New version of money type  ("D'Arcy J.M. Cain" <darcy@druid.net>)
Ответы Re: New version of money type  (Theo Schlossnagle <jesus@omniti.com>)
Список pgsql-hackers
On Thu, Sep 14, 2006 at 11:12:14AM -0400, D'Arcy J.M. Cain wrote:
> The benefit of the money type is speed.  Because internal operations
> are done on integers they can generally be handled by single CPU ops.
> My tests on the 64 bit version show 10% to 25% improvement over numeric
> for many operations.

Has anyone looked at changing numeric so that for numbers with less than
9 digits it stores/uses an int, and for between 10 and 18 digits it uses
a bigint? Perhaps that would net every numeric user a speed improvement.
-- 
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)


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

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: Reducing data type space usage
Следующее
От: mark@mark.mielke.cc
Дата:
Сообщение: Re: Reducing data type space usage