Skip to content

How flexible are record keys/PDS paths? #844

Closed Answered by dholms
snarfed asked this question in Clarifications and "Why?"
Discussion options

You must be logged in to vote

Rkey is left intentionally flexible. You can see in many of the record lexicons, they declare their key type. We only have two supported key types right now:

  • tid (for most collections)
  • literal:self (for collections that should only have one record in them)

Additional rkey semantics are possible & supported, however I'd encourage you to think twice before doing so. Do you have anything in particular in mind?

TIDs are useful because they order collection contents by rough creation time. When syncing some slice of a repository, it is likely that you'll be doing so based on time & this allows creates smaller aggregate proofs.

An example of this is follows. Wouldn't it make sense to key them…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@dholms
Comment options

Answer selected by snarfed
Comment options

You must be logged in to vote
2 replies
@dholms
Comment options

@bnewbold
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants