DynamoDB auto incremented ID & server time (iOS SDK)

后端 未结 3 1654
既然无缘
既然无缘 2020-12-20 13:12

Is there an option in DynammoDB to store auto incremented ID as primary key in tables? I also need to store the server time in tables as the \"created at\" fields (eg., user

3条回答
  •  星月不相逢
    2020-12-20 13:58

    I've created a small web service just for this purpose. See this blog post, that explains how I'm using stateful.co with DynamoDB in order to simulate auto-increment functionality: http://www.yegor256.com/2014/05/18/cloud-autoincrement-counters.html

    Basically, you register an atomic counter at stateful.co and increment it every time you need a new value, through RESTful API.

提交回复
热议问题