Pilih preferensi cookie Anda

Kami menggunakan cookie penting serta alat serupa yang diperlukan untuk menyediakan situs dan layanan. Kami menggunakan cookie performa untuk mengumpulkan statistik anonim sehingga kami dapat memahami cara pelanggan menggunakan situs dan melakukan perbaikan. Cookie penting tidak dapat dinonaktifkan, tetapi Anda dapat mengklik “Kustom” atau “Tolak” untuk menolak cookie performa.

Jika Anda setuju, AWS dan pihak ketiga yang disetujui juga akan menggunakan cookie untuk menyediakan fitur situs yang berguna, mengingat preferensi Anda, dan menampilkan konten yang relevan, termasuk iklan yang relevan. Untuk menerima atau menolak semua cookie yang tidak penting, klik “Terima” atau “Tolak”. Untuk membuat pilihan yang lebih detail, klik “Kustomisasi”.

Primary Key Design Considerations - Comparing the Use of Amazon DynamoDB and Apache HBase for NoSQL
Halaman ini belum diterjemahkan ke dalam bahasa Anda. Minta terjemahan

Primary Key Design Considerations

Primary key design is critical to the performance of Amazon DynamoDB. When storing data, Amazon DynamoDB divides a table's items into multiple partitions, and distributes the data primarily based on the partition key element. The provisioned throughput associated with a table is also divided evenly among the partitions with no sharing of provisioned throughput across partitions.

Tip

To efficiently use the overall provisioned throughput, spread the workload across partition key values.

For example, if a table has a very small number of heavily accessed partition key elements, possibly even a single very heavily used partition key element, traffic can become concentrated on a single partition and create "hot spots" of read and write activity within a single item collection. In extreme cases, throttling can occur if a single partition exceeds its maximum capacity.

To better accommodate uneven access patterns, Amazon DynamoDB adaptive capacity enables your application to continue reading and writing to hot partitions without being throttled, provided that traffic does not exceed your table’s total provisioned capacity or the partition maximum capacity. Adaptive capacity works by automatically and instantly increasing throughput capacity for partitions that receive more traffic.

To get the most out of Amazon DynamoDB throughput, you can build tables where the partition key element has a large number of distinct values. Ensure that values are requested fairly uniformly and as randomly as possible. The same guidance applies to global secondary indexes. Choose partitions and sort keys that provide uniform workloads to achieve the overall provisioned throughput.

PrivasiSyarat situsPreferensi cookie
© 2025, Amazon Web Services, Inc. atau afiliasinya. Semua hak dilindungi undang-undang.