[英]Assigning rowkey values in Azure table storage
I want to store my users in an Azure table. 我想将用户存储在Azure表中。 My preference is to use Integer values as UserId's.
我的偏好是使用Integer值作为UserId。 How can I generate unique UserId's (integer values) before saving user information in an Azure table?
在将用户信息保存到Azure表中之前,如何生成唯一的UserId(整数值)?
The best thing to do is to avoid generating a unique id in terms maintaining the state. 最好的办法是避免在维护状态方面生成唯一的ID。 This is due to the fact that there is lot of work involved on resolving potential concurrency issues.
这是由于存在很多解决潜在的并发问题的工作。 You could consider using GUID for this purpose.
您可以考虑为此使用GUID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.