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.
6 0 ReplyThe trouble is, filesystems don't have ACID. The first time you have a power loss during a write, your data will get corrupted.
7 0 ReplyHmm that's a valid criticism, thanks for pointing it out
2 0 Reply
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.
9 0 ReplySqlite is the best in most cases
3 0 Reply
Duckdb can query them with SQL like they are in a database. Csv, tsv, parquet also. You can even connect to and query postures and cloud storage also
3 0 Reply
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.
17 0 ReplyThey’re more like blob storage.
15 0 ReplyBlob storage usually uses a FS back end so it’s more like blob storage is like a file system
4 0 Reply
git repo is blockchain
29 0 ReplyYou're right! Ill just store all this data as static json files in a directory then
20 0 Replyand anuses are vaginas, as long as you treat them as one.
26 0 Replybussy
21 0 ReplyAs a man of science I prefer to test every theory.
15 0 Replythe anus isnt self lubricating :(
8 0 ReplyIt can be if you're lactose intolerant.
3 0 Replyhttps://my.clevelandclinic.org/health/body/24784-anus-function
Muscles, nerves and mucous membranes in your anus
It is though...
11 0 Reply
For example, a directory full of spreadsheets.
Somewhere, a sysadmin is pulling his hair out
32 0 Replyor CSV files
5 0 ReplyTbh still preferred to that asshat who rolls out an MS Access "app"
9 0 Reply*starts rocking back and forth in chair
1 0 Reply
If file systems are databases, then does that mean storing a sqlite db on a HDD is database inception?
57 0 Reply@slazer2au Yes!
19 0 Reply
everything is a file including a filesystem*
* including databases
35 0 Reply@linuxmemes Wow, that worked!
46 0 ReplyHow do you post from mastodon to lemmy?
17 0 Reply@mogoh I just mentioned the group and it worked!
The way it's supposed to be!
I'm so happy for this omfgrotflolcopter
43 0 ReplyFederation.
Wait till you get a comment from threads. I've only had it happen once and it made me feel dirty.
12 0 Reply@mogoh AFAIK, I should mention @linuxmemes handle to make the comment visible inside the original Lemmy thread.
@drq7 0 Reply
It does!
8 0 Reply@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.
13 0 Reply
@drq what worked
1 0 Reply@th3rdsergeevich@udongein.xyz
@drq @linuxmemes you forgor to mention linuxmemes3 0 Reply
That's less the Unix way and more the BeOS way.
10 0 Reply@drosophila Well, both filesystems' and databases' function is to manage and retrieve data.
BeOS just did it better.
1 0 Reply
And files are streams. 🎵 Islands in the stream. 🎵
18 0 Reply🎵 That is what we awk 🎵
11 0 Reply
welcome to lemmy im new also
9 0 Reply@mugdad1 Trick is, I'm not on Lemmy.
6 0 Replywtf 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
5 0 Reply
Filesystem-as-a-db is why MongoDB is webscale. You just turn it on and it scales right up.
7 0 ReplyEvery Homestuck fan already knows this.
6 0 Reply@RizzRustbolt What's your fetch modus, warrior?
3 0 Reply"I have a system". Items are sorted randomly on to the top of "piles". I can retrieve any item from any pile, but pulling from anywhere except from the top of the pile destroys it.
2 0 Reply
Honestly that's basically what CephFS is
5 0 Reply@possiblylinux127 Or BeFS
2 0 ReplyBeFS doesn't run on top of a data store. CephFS runs on RADOS.
2 0 Reply
But they are not DBMS
7 0 ReplyAnd the worst FAT32
5 0 ReplyThe list of reasons filesystems are not databases is a database.
5 0 Reply@drq Come on, that can't be your F I R S T post.
@linuxmemes5 0 Reply@th3rdsergeevich It is my first op-post on lemmy, that's right.
9 0 Reply
Behold! I present to you: Database as Filesystem
4 0 ReplyAnd all code is data too, and all processes are data transformers
2 0 Reply1 0 ReplyWell, that's ok, you are welcome.
1 0 ReplyI don't know why this one was such a good laugh, but great first post.
1 0 ReplyMine's more of a databivouac.
1 0 Reply@pics
1 0 ReplyDoes not work
1 0 Reply
@drq@mastodon.ml Second post?
@linuxmemes@lemmy.world1 0 Reply