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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则