Re: Real vs Int performance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Real vs Int performance
Дата
Msg-id 21353.1296137891@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Real vs Int performance  (David Greco <David_Greco@harte-hanks.com>)
Ответы Re: Real vs Int performance
Список pgsql-performance
David Greco <David_Greco@harte-hanks.com> writes:
> Right you are. Kettle is turning the number(11) field from Oracle into
> a BigNumber, which is a decimal. If I cast the field into an Integer
> in Kettle and keep the field an integer in Postgres, I get good
> performance. Suspect the correct course of action would simply be to
> make number(11) fields in Oracle numeric(11,0) fields in Postgres.

Not if you can persuade the client-side code to output integers as
integers.  "numeric" type is orders of magnitude slower than integers.

            regards, tom lane

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

Предыдущее
От: Shaun Thomas
Дата:
Сообщение: Re: Why I lost the last pg_xlog file?
Следующее
От: Shaun Thomas
Дата:
Сообщение: Re: Real vs Int performance