Re: Slow performance updating CLOB data

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Slow performance updating CLOB data
Дата
Msg-id CADK3HH+zaVhTmjgyCkYKt_RQouD1V0WeO89z0BSv7zJzoU7i=Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Slow performance updating CLOB data  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Ответы Re: Slow performance updating CLOB data  (Christopher BROWN <brown@reflexe.fr>)
Re: Slow performance updating CLOB data  (Christopher BROWN <brown@reflexe.fr>)
Список pgsql-jdbc




On 18 July 2016 at 07:48, Vladimir Sitnikov <sitnikov.vladimir@gmail.com> wrote:
Dave>Well all drivers have to do something similar. Not all result sets are updatable. What do other drivers do ?

Technically speaking, pgjdbc could cache the names of primary keys for a given table.
It would be useful at least in two places:
1) updateable resultset
2) return generated keys

However, as of now no such cache exists in pgjdbc.
The second issue is the backend does not send notifications on DDL changes. Thus the cache can easily get out of sync when java thinks there's a column named A, and in reality the column was dropped long ago.

This error would happen far fewer times than the cache would help the problem. I think if we can figure out how to gracefully recover from the error we would be far further ahead. 

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

Предыдущее
От: Nicola Zanaga
Дата:
Сообщение: R: Slow performance updating CLOB data
Следующее
От: Christopher BROWN
Дата:
Сообщение: Re: Slow performance updating CLOB data