Index definitions
Bases: object
A global index for DynamoDB
Parameters: | name : str
hash_key : str
range_key : str, optional
throughput : dict, optional
|
---|
Select which attributes to project into the index
Set the index throughput
Parameters: | read : int, optional
write : int, optional
|
---|
Notes
This is meant to be used as a chain:
class MyModel(Model):
__metadata__ = {
'global_indexes': [
GlobalIndex('myindex', 'hkey', 'rkey').throughput(5, 2)
]
}