简体   繁体   English

在Azure表存储中分配行键值

[英]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.

相关问题 更新Azure表存储中的RowKey或PartitionKey - Update RowKey or PartitionKey in Azure Table Storage Azure表存储 - 有序数据的RowKey设计 - Azure Table Storage - RowKey design for ordered data 查询行键大于Azure表存储中的行键 - query rowkey with greater than in azure table storage 当使用无效值查询Azure表存储时,请指定ParitionKey或RowKey错误 - Specify wheter ParitionKey or RowKey is wrong when querying Azure Table Storage with invalid values Azure 存储资源管理器:如何使用“包含”查询表存储 Rowkey? - Azure Storage Explorer: How to query Table Storage Rowkey with “Contains”? 如何在 Azure 表存储中使用 RowKey 或时间戳检索最新记录 - How to retrieve latest record using RowKey or Timestamp in Azure Table storage 使用Python SDK通过RowKey和StartsWith筛选Azure表存储 - Filter Azure Table Storage by RowKey and StartsWith using the Python SDK 如何从 TableOperation 中的 Azure 表存储中检索实体列表而不指定 rowKey? - How to retrieve a list of entities without specifying rowKey from Azure Table Storage in the TableOperation? Azure表存储(Partition key row key),如何在同一个partition不同rowKey对应插入多个实体? - Azure table storage (Partition key row key), how to insert multiple entities in corresponding to same parttion and different rowKey? 将Windows Azure表存储中的RowKey属性设置为(DateTime now + another property) - Set RowKey property in Windows Azure Table storage to (DateTime now + another property)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM