ID Generation for Sharded Database (Azure Federated Database)

后端 未结 4 1092
后悔当初
后悔当初 2021-02-09 12:29

I have been looking for some articles or guidence on best practice for id generation (for the federated/primary key) for Azure Federated databases and haven\'t found anything co

4条回答
  •  梦如初夏
    2021-02-09 13:11

    You could create sequences in the application using a variety of techniques, but they are not straightforward because of the distributed nature. One that is quite good is using blob storage and preconditions.

    Depending on your project schedule you may want to use the SQL 2012 SEQUENCE and put all your sequences in a small non-federated database. SEQUENCE is not available yet on SQL Azure.

提交回复
热议问题