Re: [GENERAL] Index using in jsonb query

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: [GENERAL] Index using in jsonb query
Дата
Msg-id b26691d5-73e8-24d0-ece9-6fe27b48696a@hogranch.com
обсуждение исходный текст
Ответ на [GENERAL] Index using in jsonb query  (SuperCiccio <sc_030268@yahoo.it>)
Ответы Re: [GENERAL] Index using in jsonb query
Список pgsql-general
On 3/11/2017 3:55 PM, SuperCiccio wrote:
Is there a way to make the following query use some sort of indexing?

select field1,field2 from datatable where (jsonfield#>>'{path1,path2}')::numeric < 1000;

if the '{path1,path2}' part is constant, I'd think you could create an index on (jsonfield #>> '{path1,path2}')::numeric


-- 
john r pierce, recycling bits in santa cruz

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

Предыдущее
От: SuperCiccio
Дата:
Сообщение: [GENERAL] Index using in jsonb query
Следующее
От: vod vos
Дата:
Сообщение: [GENERAL] How to define the limit length for numeric type?