Quantcast
Channel: Search for nested values in jsonb array with greater operator - Database Administrators Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by Erwin Brandstetter for Search for nested values in jsonb array with...

This is generally hard to optimize: no direct operator or index support for jsonb for this kind of test.EXISTS should at least be faster than what you have, while also avoiding duplicate rows (where...

View Article



Search for nested values in jsonb array with greater operator

Here is the table definition (simplified):CREATE TABLE documents ( document_id int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY, data_block jsonb NULL);Sample values:INSERT INTO documents (document_id,...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images