Re: Removing a key from jsonb is sloooow

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Removing a key from jsonb is sloooow
Дата
Msg-id 553286cb-47f5-bf94-42f2-12d1f489fbdf@aklaver.com
обсуждение исходный текст
Ответ на Removing a key from jsonb is sloooow  (Volkan Unsal <spocksplanet@gmail.com>)
Ответы Re: Removing a key from jsonb is sloooow  (Volkan Unsal <spocksplanet@gmail.com>)
Список pgsql-general
On 7/17/19 7:30 AM, Volkan Unsal wrote:
> I'm trying to remove a key from a jsonb column in a table with 10K rows, 
> and the performance is abysmal. When the key is missing, it takes 5 
> minutes. When the key is present, it takes even longer.
> 
> Test with non-existent key:
> 
>  >> update projects set misc = misc - 'foo';
> Time: 324711.960 ms (05:24.712)
> 
> What can I do to improve this?

Provide some useful information:

1) Postgres version

2) Table schema

3) Explain analyze of query



-- 
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: Volkan Unsal
Дата:
Сообщение: Removing a key from jsonb is sloooow
Следующее
От: Tumasgiu Rossini
Дата:
Сообщение: Re: Removing a key from jsonb is sloooow