It should be possible to declare indexes that should be generated for a document collection. Indexes can be defined using an indexes field in the documents Mongo class. Indexes use the following format:
Either a list of indexes or a dictionary of named indexes.
Each Index can be a simple key, a tuple of key and order/index type or a list of such tuples.
The type of an index in the general case should be OrderedDict.
Options for indexes should be supported (especially the unique flag) although the concrete implementation is not yet clear.
It should be possible to declare indexes that should be generated for a document collection. Indexes can be defined using an
indexes
field in the documentsMongo
class. Indexes use the following format:OrderedDict
.