Exemples d'utilisation de Partition key and sort key en Anglais et leurs traductions en Français
{-}
-
Colloquial
-
Official
Data Distribution: Partition Key and Sort Key.
When you create an index,you define an alternate key for the index partition key and sort key.
Partition key and sort key- Referred to as a composite primary key, this type of key is composed of two attributes.
The primary key of a local secondary index must be composite partition key and sort key.
The table partition key and sort key, plus the index sort key, are the only attributes projected into the index.
The global secondary indexes must have the same partition key and sort key if present.
The index partition key and sort key(if present) can be any base table attributes of type string, number, or binary.
The size in bytes of the base table primary key partition key and sort key.
Create a new table with the same partition key and sort key, and then move items from the old table to the new table.
With Scan, you can specify any attributes in a filter expression-including partition key and sort key attributes.
If the primary key is composite(partition key and sort key), you can use this tag to map your class field to the sort key. .
You can query a table oran index only if it has a composite primary key partition key and sort key.
The partition key and sort key of the table are always projected into the index; you can project other attributes to support your application's query requirements.
For example, to read an item using GetItem,you must specify the partition key and sort key(if applicable) for that item.
If the partition key and sort key are of type String,and annotated with@DynamoDBAutoGeneratedKey, then they are given a random universally unique identifier(UUID) if left uninitialized.
The primary key can consistof one attribute(partition key) or two attributes partition key and sort key.
For example, if a table has a composite primary key( partition key and sort key), you must supply a value for the partition key and a value for the sort key. .
The primary key of a global secondary index can be either simple(partition key) or composite partition key and sort key.
You need to specify the index name,the query criteria for the index partition key and sort key(if present), and the attributes that you want to return.
In the example Music table shown previously, you can query data items by Artist(partition key) orby Artist and SongTitle partition key and sort key.