What is the best practice when choosing partition & row key for entities with one important key?
Sample entities:
- Device1:
- ID: AB1234567
- IsRunning: Yes
- IsUpdating: No
- Device2:
- ID: AB7654321
- IsRunning: Yes
- IsUpdating: Yes
I saw this post that suggests splitting the ID as partition key and row key.
But Azure documentation actually recommends only using partition key when the entity only has one key property. It doesn't say what should be set as the row key though.. should it be empty? Or maybe a default value like '0'?
The expected records is maybe in the tens of thousands. Currently ~10k but growing