Recently, I 've been trying to create a workaround for a certain issue I have with regards to hash keys.
In my scenario, I have a table that is to contain the basic profile info of a user.. Including 'gender'. The 'gender' attribute specifies whether its a male or female(m, f).. And sometimes I need to query for only males. Am I to create a global secondary index(with 'gender' as the hash key) to perform these queries, considering that similar hash keys resolve to the same physical partition when dynamodb performs its hashing function, and I could end up overloading a single partition since there are only two possible distinct values