How to implement “autoincrement” on Google AppEngine

前端 未结 9 824
面向向阳花
面向向阳花 2020-11-27 16:23

I have to label something in a \"strong monotone increasing\" fashion. Be it Invoice Numbers, shipping label numbers or the like.

  1. A number MUST NOT BE used twi
9条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 17:08

    Remember: Sharding increases the probability that you will get a unique, auto-increment value, but does not guarantee it. Please take Nick's advice if you MUST have a unique auto-incrment.

提交回复
热议问题