by mcdee · 10y ago · 0 comments
Using ->> (or ->) in a WHERE statement is generally a bad idea, and certainly a terrible idea without an explicit index. Use @> instead.
In the specific example given it might, but you will still wind up with a handful of queries that are planned wrong and are orders of magnitude slower.