Indexing a collection
How to index collections and query the database to find a collection containing a particular value.
Collections can be indexed and queried to find a collection containing a particular value. Sets and lists are indexed slightly differently from maps, given the key-value nature of maps.
Sets and lists can index all values found
by indexing the collection column. Maps can index a map key,
map value, or map entry using the methods shown below. Multiple indexes can be
created on the same map column in a table, so that map keys, values, or entries can
be queried. In addition, frozen collections can be indexed using
FULL
to index the full content of a frozen collection.Note: All
the cautions about using secondary indexes apply to indexing
collections.