Can AWS DocumentDB have something similar to a hot partitioning issue?

0
  1. Can we have custom ObjectIds for DocumentDB?
  2. If we can have customer ObjectIds for DocumentDB, do we need to keep in mind any possibility of hot key while choosing the objectId?
已提問 2 年前檢視次數 209 次
1 個回答
0

1/ I assume that the question is about the _id field. Yes, DocumentDB allows setting custom ObjectId values in this field as long as the values are unique for each document in a collection.

2/ DocumentDB does not partition data. All writes go through the primary instance in the cluster and any primary key can be read from any of the read replicas. You will not have hot keys in the same sense as other products like DynamoDB and S3.

There are other considerations that you should keep in mind to maintain good performance. See https://docs.aws.amazon.com/documentdb/latest/developerguide/best_practices.html

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南