nickva commented on PR #5698:
URL: https://github.com/apache/couchdb/pull/5698#issuecomment-3398668802

   > for compatibility with what?
   
   `_uuid` endpoint today returns hex-encoded 128 bit values as 32 byte 
strings. If we switch from sequential to uuid v7 the hex-encoded format without 
dashes would seem less disruptive since the shape of it would be exactly the 
same as previously with the `sequential` algorithm.
   
   > We still have the `bin` function that happens before the hex encoding. I'm 
all for a place where the uuid v7 is stored as the 128 bit binary, but there 
isn't one today, is there? 
   
   They are now used as the purge UUIDs in the purge id and purge seq b-trees:
   
   ```
   purge_tree: UUID -> {PurgeSeq, DocId, Revs}
   purge_seq_tree: PurgeSeq -> {UUID, DocId, Revs}
   ```
   
   The UUID part here before was the 32 character `sequential` string as 
returned from `couch_uuid:new()`, now it's the `couch_uuid:v7_bin()`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to