Say you wanted a database inside a huge distributed JSON file that scaled vertically.

So that get("users.jane33"), pulls Jane33’s profile.

Are there any specs for that? I’ve seen MongoDB, but no longer like its license.

I’m thinking a DHT with pointers, and raw data blobs. But would like to see what’s already working.

  • duckduckduck@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 days ago

    Yeah, sure. Just make your own token ring system to split up the JSON across multiple files based on some unique composite key. Then wrap everything in a script using jq that gets your functions get(path) and returns the document matching that “query” rofffl