I am managing users in a collection in the nosql service, and am wondering if docId is guaranteed to be unique after deletion of a document. For example:
-
I query a collection and now have a docId on the client
-
The underlying document with that docId is deleted from the collection
-
A new document is inserted into the collection
-
The entire collection is deleted and recreated
-
A new document is inserted into the recreated collection
In the case of (3) or (5), is it possible the docId from (1) will be generated again by the nosql service? I need to know if docIds can be treated as GUIDs, or if I need to generate ids myself to ensure docIds can't be used to update the wrong records.