Removing a key from jsonb is sloooow

Поиск
Список
Период
Сортировка
От Volkan Unsal
Тема Removing a key from jsonb is sloooow
Дата
Msg-id CAMcqKmnaJS_xnuKY6j2e+uZbHXhrtDx6SaDcRp-ZMYPfAbsOKw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Removing a key from jsonb is sloooow  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: Removing a key from jsonb is sloooow  (Tumasgiu Rossini <rossini.t@gmail.com>)
Re: Removing a key from jsonb is sloooow  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
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?

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

Предыдущее
От: Rory Campbell-Lange
Дата:
Сообщение: Re: How to run a task continuously in the background
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Removing a key from jsonb is sloooow