You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The resulting query might look something like this:
SELECT*FROM collection_items
-- join collections by nameWHERE key LIKE"foo:%:bar%"
Note that a simple BTREE index will help up until the first wildcard appears, using a GIN index with the pg_trgm extension will allow for indexing to work with more than one wildcard:
CREATE INDEX idx_my_keys_trgm ON my_keys USING GIN (key_name gin_trgm_ops);
Acceptance criteria
A new function in the Collections context that returns a stream of items with keys matching the query.
Must be injection proof, i.e. use the like macros from Ecto.
The text was updated successfully, but these errors were encountered:
Re: #2190
Add a function that retrieves a list of items from a collection based on a key with wildcards.
Given this rough example:
The resulting query might look something like this:
Acceptance criteria
like
macros from Ecto.The text was updated successfully, but these errors were encountered: