If file systems are databases, then does that mean storing a sqlite db on a HDD is database inception?
post
@linuxmemes Wow, that worked!
How do you post from mastodon to lemmy?
@mogoh I just mentioned the group and it worked!
The way it's supposed to be!
I'm so happy for this omfgrotflolcopter
Oh, that's really cool. I hope there's more linkage between the twitter-like and reddit-like islands of the fediverse in the future; I'm somewhat interested in reading the former but it seems to be complicated to actually get federation with it.
Do you mean just mentioning the group anywhere in the post finally works? Before, I had to mention it on first line. That's some progress.
Federation.
Wait till you get a comment from threads. I've only had it happen once and it made me feel dirty.
@mogoh AFAIK, I should mention @linuxmemes handle to make the comment visible inside the original Lemmy thread.
@drq
@30p87 Okay, looks like we *finally* have *actual* groups in Fedi that are compatible across the board.
I've been waiting for this for so long, I've almost given up all hope.
Tbh still preferred to that asshat who rolls out an MS Access "app"
and anuses are vaginas, as long as you treat them as one.
the anus isnt self lubricating :(
You're right! Ill just store all this data as static json files in a directory then
Didn't someone actually try making SQL as a filesystem and it ended up being something like 50 times slower than ZFS after they applied a ton of optimizations?
Not as a serious project, but more like a joke to see what would actually happen.
And files are streams. π΅ Islands in the stream. π΅
Theyβre more like blob storage.
Just fucking putting data into json files in a folder is so much easier than databases. Sure, databases are faster and give you access to powerful SQL queries. But if you're just making something small and simple, you don't need those things. Save yourself the hassle and just use the filesystem.
Or use minio/s3, which can either be the best or the worst of both worlds depending on your usecase.
The trouble is, filesystems don't have ACID. The first time you have a power loss during a write, your data will get corrupted.
It also makes you re-implement a database, but worse.
Use a JSON file if you just need to serialize/deserialize some data. Use SQLite or a DB server if you need more. Your own code will never match the quality of SQLite.
welcome to lemmy im new also
wtf how do you mix between lemmy and mastdon i also have account there but i didn't thought that the content will be here also so please explain
@mugdad1 I don't mix, I'm on Mastodon. I just mentioned @linuxmemes in op-post et voila! Neat, huh?
That's what federation is all about.
Welcome to the lovely world of the Fediverse! Mastodon and Lemmy, among many other kinds of software, both run on ActivityPub. This means that even if the servers aren't both running Lemmy or Mastodon, they still speak the same language and can therefore understand the content of each other's posts (think of it as email, gmail.com can still send and receive mail to outlook.com). Other examples of AcitvityPub software are Misskey, Mbin, Friendica, Pixelfed, Loops, Piefed, PeerTube and many others that I haven't learned about yet. While they theoretically can all fetch and present posts from each other, due to the choices that each developer makes while designing their software, it might not be very possible to get every post from every software. For example, Mastodon is all about following people, and Lemmy about following communities. Even though Mastodon is able to follow Lemmy communities, Lemmy has (as of writing) no function to follow people (yet).
Filesystem-as-a-db is why MongoDB is webscale. You just turn it on and it scales right up.
I love how pacman/libalpm database is just directories with tiny little files, and itβs faster in resolving dependencies than mostly anything else
Every Homestuck fan already knows this.
Honestly that's basically what CephFS is
@drq Come on, that can't be your F I R S T post.
@linuxmemes
@th3rdsergeevich It is my first op-post on lemmy, that's right.
Behold! I present to you: Database as Filesystem
top 50 comments