GIN
GIN indexes the values inside a column: jsonb keys, array elements, words. The jsonb containment operator @> is its classic job.
task
Make attrs @> '{"fuel":"gas"}' use a GIN index.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
GIN indexes the values inside a column: jsonb keys, array elements, words. The jsonb containment operator @> is its classic job.
Make attrs @> '{"fuel":"gas"}' use a GIN index.