Re: Fast BigDecimal

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Fast BigDecimal
Дата
Msg-id Pine.BSO.4.64.0904181954340.31632@leary.csoft.net
обсуждение исходный текст
Ответ на Fast BigDecimal  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: Fast BigDecimal  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc

On Thu, 16 Apr 2009, Heikki Linnakangas wrote:

> Here's another patch I put together while trying to improve performance for
> the customer that bumped into the repeated Describe thing yesterday. It
> speeds up ResultSet.getBigDecimal() with the same fastpath implementation we
> have for getInt and getLong.

To maintain the same behavior as the current code, you need to handle the
period more carefully.  You must ensure that there is only one and that
there's at least one other number.  Consider the case of SELECT '.' OR
SELECT '1.......'.

Kris Jurka

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Fast BigDecimal
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Fast BigDecimal