Auto-Increament Numeric Id #237
sushruthkumar123
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
So, we are trying to migrate from sql server to cosmos and we want to previous the old pk and start creating new sequential ids when creating new documents in cosmos db. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mumby0168 - this idea for auto-incrementing id's could be done with stored-procedures. For a given type, when it is created, within the stored-procedure it could get the max id, and add one for the current write. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Auto increament numeric id sequencially when creating a new document of the same "_type" .
Beta Was this translation helpful? Give feedback.
All reactions