Stop using the database auto-increment ID #149
josecelano
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@WarmBeer @da2ce7 @cgbosse and @josecelano were discussing the torrent IDs.
Discussion originated here: #146 (comment)
Context
We were using auto-increment IDs (generated by the database) for:
/torrent/{id}
We've changed that for the API endpoints so now we use the infohash: GET
/torrent/{infohash}
@josecelano proposed removing the IDs because that would make it easier to share data between indexes. For example:
That led to a broader discussion about how:
First conclusions
Finally, the discussion ends up by changing the long-term vision about the index. HTe index could be, not a torrent v1 index, but a "decentralized multi-protocol context index" where you can find metadata about contexts which you can reach by using different locator mechanisms:
So what you really index is the metadata about the content. We call that an "index entry". The index entry can have multiple sets of related metadata, depending on who added that metadata for the contents. It would we quite the opposite. The index contains the description of the data we want to find and the metadata would be how you can find that content.
For the time being, we are not going to change the DB schema to use infohashes.
Beta Was this translation helpful? Give feedback.
All reactions