this post was submitted on 29 Nov 2026
17 points (70.7% liked)

Programming

29423 readers
300 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
 

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.

top 31 comments
sorted by: hot top controversial new old
[–] badmin@lemmy.today 8 points 14 hours ago

Yes. It's called a filesystem.

[–] lntl@lemmy.sdf.org 6 points 13 hours ago

ext4 is a mature tool for this style workflow

[–] bananabread@lemmy.zip 7 points 15 hours ago (2 children)

Json is for humans, not for storage

[–] bignose@programming.dev 2 points 5 hours ago* (last edited 2 hours ago)

Json is for humans, not for storage

JSON is not for humans. If I can't write arbitrary multi-line comments in the text file, it's not for humans.

JSON is, as described by the standard defining it, for computers talking to each other:

JSON is a […] syntax for defining data interchange formats.

If you want a format writable and readable by humans? We deserve better.

[–] IMALlama@lemmy.world 1 points 5 hours ago

Tell that to postgres's json and json. But you're completely correct here, just because you can do something doesn't mean it's a good idea.

[–] Ephera@lemmy.ml 13 points 19 hours ago

In principle, you're looking for a "document-oriented database": https://en.wikipedia.org/wiki/Document-oriented_database

CouchDB is what I usually see recommended as an alternative to MongoDB and might fit your bill (although I haven't worked with it yet): https://couchdb.apache.org/

[–] ViatorOmnium@piefed.social 12 points 19 hours ago* (last edited 19 hours ago) (2 children)
[–] one_old_coder@piefed.social 2 points 19 hours ago

SQLite can do it too, but I've seen a lot of praise for DuckDB recently. The duck is worth trying.

[–] r4mp@lemmy.zip 11 points 19 hours ago

Maybe PostgreSQL with JSON Extension

[–] wet_bones@lemmy.4d2.org 6 points 19 hours ago (1 children)

Jq is a non SQL JSON query language.

[–] practisevoodoo@lemmy.world 1 points 14 hours ago

Json-ld and sparql?