I have use the DynamoDB for a while.
And was told that my hashkeys to insert are not so uniformly, there was a hot spot in a partition.
May I have the hash algorithm to judge my hashkeys?
I have use the DynamoDB for a while.
And was told that my hashkeys to insert are not so uniformly, there was a hot spot in a partition.
May I have the hash algorithm to judge my hashkeys?
DynamoDB does not expose their internal hashing algorithm but that should not affect your hash key distribution. A good hashing algorithm will randomly distribute your hash key values (i.e. "key1" and "key2" will hash to 2 strings that are not correlated to each other in any way).
If you are suffering from hot key issues in your DynamoDB table, it likely means you are accessing one hash key (or a small range of hash keys) more frequently than others, or that your hash key values are not distributed enough (i.e. not enough unique values).
Where did you get the information regarding hot spot in your partition? It may be helpful to go back to that source and dig more into the details of the unevenly distributed hashkey values.